XarayaTranslationMemory
1.6
|
Public Member Functions | |
__construct ($projectID) | |
rewind () | |
hasMore () | |
key () | |
current () | |
next () | |
valid () | |
Private Attributes | |
$ProjectID | |
$ProjectStrings = [] | |
$Current | |
$IsValid | |
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 28 of file StringIterator.php.
StringIterator::__construct | ( | $projectID | ) |
Create a new TranslationString iterator for looping on contained strings.
$projectID | Which project's strings to load. |
Definition at line 41 of file StringIterator.php.
References $DB, GetDbConn(), GetTables(), and rewind().
StringIterator::current | ( | ) |
Iterator interface: current function.
Definition at line 96 of file StringIterator.php.
References $Current.
Referenced by TranslationBackend\LocateStringNext().
StringIterator::hasMore | ( | ) |
Iterator interface: hasMore function.
Definition at line 80 of file StringIterator.php.
StringIterator::key | ( | ) |
Iterator interface: key function.
Definition at line 88 of file StringIterator.php.
References $Current.
StringIterator::next | ( | ) |
Iterator interface: next function.
Definition at line 104 of file StringIterator.php.
StringIterator::rewind | ( | ) |
Iterator interface: rewind function.
Definition at line 72 of file StringIterator.php.
Referenced by __construct().
StringIterator::valid | ( | ) |
Iterator interface: valid function.
Definition at line 112 of file StringIterator.php.
|
private |
Index of the current string in the iterator
Definition at line 33 of file StringIterator.php.
|
private |
Iterator valid or not.
Definition at line 34 of file StringIterator.php.
|
private |
Stores which project's strings are loaded.
Definition at line 30 of file StringIterator.php.
|
private |
Loaded strings.
Definition at line 31 of file StringIterator.php.