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 |
StringIterator::__construct | ( | $ | projectID | ) |
Create a new TranslationString iterator for looping on contained strings.
$projectID | Which project's strings to load. |
Definition at line 43 of file StringIterator.php.
References $DB, GetDbConn(), GetTables(), and rewind().
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.
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.