ProjectIterator Class Reference

List of all members.

Detailed Description

Class to list and iterate TranslationProject classes as they are stored in the database.

ProjectIterator can be initialized with a parent project id, and then it can be used to loop on child projects, either recursve or direct childs.

Definition at line 30 of file ProjectIterator.php.

Public Member Functions

 __construct ($parentID, $localeID)
 rewind ()
 hasMore ()
 key ()
 current ()
 next ()
 valid ()
 hasChildren ()
 getChildren ()

Static Public Attributes

static $ProjectList
static $ProjectChildren

Private Attributes

 $LocaleID
 $ParentID
 $CurrentProject


Constructor & Destructor Documentation

ProjectIterator::__construct ( parentID,
localeID 
)

Create a new TranslationProject iterator for looping on child projects.

Parameters:
$parentID The project ID in which we will loop child projects.
$localeID The locale to work with.

Definition at line 46 of file ProjectIterator.php.

References $DB, GetDbConn(), GetTables(), and rewind().


Member Function Documentation

ProjectIterator::current (  ) 

Iterator interface: current function.

Definition at line 139 of file ProjectIterator.php.

ProjectIterator::getChildren (  ) 

Recursive Iterator: getChildren function

Definition at line 197 of file ProjectIterator.php.

ProjectIterator::hasChildren (  ) 

Recursive Iterator: hasChildren function

Definition at line 188 of file ProjectIterator.php.

ProjectIterator::hasMore (  ) 

Iterator interface: hasMore function.

Definition at line 102 of file ProjectIterator.php.

ProjectIterator::key (  ) 

Iterator interface: key function.

Definition at line 132 of file ProjectIterator.php.

ProjectIterator::next (  ) 

Iterator interface: next function.

Definition at line 146 of file ProjectIterator.php.

ProjectIterator::rewind (  ) 

Iterator interface: rewind function.

Definition at line 87 of file ProjectIterator.php.

Referenced by __construct().

ProjectIterator::valid (  ) 

Iterator interface: valid function.

Definition at line 178 of file ProjectIterator.php.


Member Data Documentation

ProjectIterator::$CurrentProject [private]

ID of the current project in the Iterator.

Definition at line 35 of file ProjectIterator.php.

ProjectIterator::$LocaleID [private]

Work with strings from this locale.

Definition at line 32 of file ProjectIterator.php.

ProjectIterator::$ParentID [private]

Start listing childs of this project.

Definition at line 33 of file ProjectIterator.php.

ProjectIterator::$ProjectChildren [static]

Cached array to hold project tree data

Definition at line 38 of file ProjectIterator.php.

Referenced by TranslationProject::DestroyData().

ProjectIterator::$ProjectList [static]

Cached list of all available projects

Definition at line 37 of file ProjectIterator.php.

Referenced by TranslationProject::DestroyData().


The documentation for this class was generated from the following file:
Generated on Tue Mar 20 00:42:40 2007 for XarayaTranslationMemory by  doxygen 1.4.7