3 declare(strict_types=1);
    26         $this->index = $starting_index;
    37         if (strpos($cid, 
'-') === 0) {
    38             $inverted_cid = str_replace(
'-', 
'', $cid);
    39             $index = (
int) base_convert($inverted_cid, 36, 10);
    44         return (
int) base_convert($cid, 36, 10);
    56             return '-' . base_convert((
string) $this->
invertIndex($index), 10, 36);
    59         return base_convert((
string) $index, 10, 36);
 Class ilCtrlStructureCidGenerator. 
 
invertIndex(int $index)
Helper function that inverts an integer value. 
 
getIndexByCid(string $cid)
Returns the index of a given cid. 
 
getCid()
Returns the next available cid. 
 
__construct(int $starting_index=0)
ilCtrlStructureCidGenerator Constructor 
 
getCidByIndex(int $index)
Returns the cid for a given index.