StringIterator Class Reference

List of all members.

Detailed Description

Class to list and iterate TranslationString objects as they are stored in the database.

StringIterator can be initialized with a project ID and then strings belonging to that project can be looped.

Definition at line 30 of file StringIterator.php.

Public Member Functions

 __construct ($projectID)
 rewind ()
 hasMore ()
 key ()
 current ()
 next ()
 valid ()

Private Attributes

 $ProjectID
 $ProjectStrings
 $Current
 $IsValid


Constructor & Destructor Documentation

StringIterator::__construct ( projectID  ) 

Create a new TranslationString iterator for looping on contained strings.

Parameters:
$projectID Which project's strings to load.

Definition at line 43 of file StringIterator.php.

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


Member Function Documentation

StringIterator::current (  ) 

Iterator interface: current function.

Definition at line 98 of file StringIterator.php.

StringIterator::hasMore (  ) 

Iterator interface: hasMore function.

Definition at line 82 of file StringIterator.php.

StringIterator::key (  ) 

Iterator interface: key function.

Definition at line 90 of file StringIterator.php.

StringIterator::next (  ) 

Iterator interface: next function.

Definition at line 106 of file StringIterator.php.

StringIterator::rewind (  ) 

Iterator interface: rewind function.

Definition at line 74 of file StringIterator.php.

Referenced by __construct().

StringIterator::valid (  ) 

Iterator interface: valid function.

Definition at line 114 of file StringIterator.php.


Member Data Documentation

StringIterator::$Current [private]

Index of the current string in the iterator

Definition at line 35 of file StringIterator.php.

StringIterator::$IsValid [private]

Iterator valid or not.

Definition at line 36 of file StringIterator.php.

StringIterator::$ProjectID [private]

Stores which project's strings are loaded.

Definition at line 32 of file StringIterator.php.

StringIterator::$ProjectStrings [private]

Loaded strings.

Definition at line 33 of file StringIterator.php.


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