// ******************************************************************
// *
// * LsPathFolder.js
// *
// * Copyright (C) 2002 by Lingway, France. All rights reserved.
// *
// ******************************************************************/

// ******************************************************************
// LsFolder class

// Initialization of LsFolder class.
function _lsFolderInit(pId, pCode, pLabel, pPath, pHasSubFolders)
{
  this.id            = pId;                 // Type : integer
  this.code          = pCode;               // Type : string
  this.label         = pLabel;              // Type : string
  this.path          = pPath;               // Type : string
  this.hasSubFolders = pHasSubFolders;      // Type : Boolean
}

// Constructor.
function LsFolder(pId, pCode, pLabel, pPath, pHasSubFolders)
{
  // "Public" methods.
  this.initialize  = _lsFolderInit;

  this.initialize(pId, pCode, pLabel, pPath, pHasSubFolders);
}


// ******************************************************************
// LsPathFolder class

// Initialization of LsPathFolder object.
function _lsPathFolderInit()
{
  this.parentFolders = null;    // Array of LsFolder objects.
  this.currentFolder = null;    // An LsFolder object.
  this.subFolders    = null;    // Array of LsFolder objects.
}

// Constructor.
function LsPathFolder()
{
  this.initialize  = _lsPathFolderInit;

  this.initialize();
}

