XarayaTranslationMemory
1.6
|
Public Member Functions | |
__construct ($parentID, $localeID, $brief=false) | |
rewind () | |
hasMore () | |
key () | |
current () | |
next () | |
valid () | |
hasChildren () | |
getChildren () | |
Static Public Member Functions | |
static | ClearCache ($localeID) |
Static Public Attributes | |
static | $ProjectList |
static | $ProjectChildren |
Private Attributes | |
$LocaleID | |
$ParentID | |
$CurrentProject | |
$Brief | |
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. ***** A 'PROJECT' IS ONE FILE IN XARAYA TERMS *****
Definition at line 29 of file ProjectIterator.php.
ProjectIterator::__construct | ( | $parentID, | |
$localeID, | |||
$brief = false |
|||
) |
Create a new TranslationProject iterator for looping on child projects.
$parentID | int The project ID in which we will loop child projects. |
$localeID | int The locale to work with. |
$brief | bool True value will load partial project details, without Skeleton and Document. |
Definition at line 54 of file ProjectIterator.php.
References $CONFIG, $DB, $LocaleID, GetDbConn(), GetTables(), and rewind().
|
static |
Clear cached ProjectList and ProjectChildren (both memory and disk).
Definition at line 141 of file ProjectIterator.php.
References $CONFIG, $ProjectChildren, and $ProjectList.
Referenced by TranslationProject\DestroyData(), TranslationExportXaraya\Export(), and TranslationImportXaraya\Import().
ProjectIterator::current | ( | ) |
Iterator interface: current function.
Definition at line 228 of file ProjectIterator.php.
References $LocaleID.
ProjectIterator::getChildren | ( | ) |
Recursive Iterator: getChildren function
Definition at line 286 of file ProjectIterator.php.
Referenced by TranslationExportXaraya\ProcessRecursive().
ProjectIterator::hasChildren | ( | ) |
Recursive Iterator: hasChildren function
Definition at line 277 of file ProjectIterator.php.
Referenced by TranslationExportXaraya\ProcessRecursive().
ProjectIterator::hasMore | ( | ) |
Iterator interface: hasMore function.
Definition at line 191 of file ProjectIterator.php.
References $LocaleID.
ProjectIterator::key | ( | ) |
Iterator interface: key function.
Definition at line 221 of file ProjectIterator.php.
ProjectIterator::next | ( | ) |
Iterator interface: next function.
Definition at line 235 of file ProjectIterator.php.
References $LocaleID.
ProjectIterator::rewind | ( | ) |
Iterator interface: rewind function.
Definition at line 176 of file ProjectIterator.php.
References $LocaleID, and $ParentID.
Referenced by __construct().
ProjectIterator::valid | ( | ) |
Iterator interface: valid function.
Definition at line 267 of file ProjectIterator.php.
|
private |
True value loads partial project details, without Skeleton and Document
Definition at line 40 of file ProjectIterator.php.
|
private |
ID of the current project in the Iterator.
Definition at line 37 of file ProjectIterator.php.
|
private |
Work with strings from this locale.
Definition at line 32 of file ProjectIterator.php.
Referenced by __construct(), current(), hasMore(), next(), and rewind().
|
private |
Start listing childs of this project.
Definition at line 34 of file ProjectIterator.php.
Referenced by rewind().
|
static |
Cached array to hold project tree data
Definition at line 45 of file ProjectIterator.php.
Referenced by ClearCache().
|
static |
Cached list of all available projects e.g. ProjectList[2][44] = a TranslationProject
Definition at line 43 of file ProjectIterator.php.
Referenced by TranslationExportXaraya\CheckCodeFiles(), and ClearCache().