ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
|
Class ilCtrlStructureCidGenerator. More...
Public Member Functions | |
__construct (int $starting_index=0) | |
ilCtrlStructureCidGenerator Constructor More... | |
getIndexByCid (string $cid) | |
Returns the index of a given cid. More... | |
getCidByIndex (int $index) | |
Returns the cid for a given index. More... | |
getCid () | |
Returns the next available cid. More... | |
Private Member Functions | |
invertIndex (int $index) | |
Helper function that inverts an integer value. More... | |
Private Attributes | |
int | $index |
Class ilCtrlStructureCidGenerator.
Definition at line 26 of file class.ilCtrlStructureCidGenerator.php.
ilCtrlStructureCidGenerator::__construct | ( | int | $starting_index = 0 | ) |
ilCtrlStructureCidGenerator Constructor
int | $starting_index |
Definition at line 38 of file class.ilCtrlStructureCidGenerator.php.
ilCtrlStructureCidGenerator::getCid | ( | ) |
Returns the next available cid.
Definition at line 81 of file class.ilCtrlStructureCidGenerator.php.
References getCidByIndex().
ilCtrlStructureCidGenerator::getCidByIndex | ( | int | $index | ) |
Returns the cid for a given index.
int | $index |
Definition at line 67 of file class.ilCtrlStructureCidGenerator.php.
References invertIndex().
Referenced by getCid().
ilCtrlStructureCidGenerator::getIndexByCid | ( | string | $cid | ) |
Returns the index of a given cid.
string | $cid |
Definition at line 49 of file class.ilCtrlStructureCidGenerator.php.
References ILIAS\Repository\int(), and invertIndex().
|
private |
Helper function that inverts an integer value.
int | $index |
Definition at line 92 of file class.ilCtrlStructureCidGenerator.php.
Referenced by getCidByIndex(), and getIndexByCid().
|
private |
Definition at line 31 of file class.ilCtrlStructureCidGenerator.php.