ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
Class ilCtrlStructureMapper. More...
Public Member Functions | |
__construct (array $ctrl_structure) | |
ilCtrlStructureMapper Constructor More... | |
getStructure () | |
Returns the current structure with mapped vise-versa references of each parent-child relation. More... | |
Private Member Functions | |
addViseVersaMappingByClass (string $class_name, string $key_ref_from, string $key_ref_to) | |
If a class has referenced another one as child or parent, this method adds a vise-versa mapping if it doesn't already exist. More... | |
mapStructure () | |
Maps the current structures references. More... | |
removeReference (array &$reference_list, $index) | |
Removes an entry within the given reference list for the given index and re-indexes the reference list afterwards. More... | |
isStructureEntryValid ($index) | |
Helper function that returns whether an entry in the current structure is valid or not. More... | |
Private Attributes | |
array | $ctrl_structure |
Class ilCtrlStructureMapper.
Definition at line 26 of file class.ilCtrlStructureMapper.php.
ilCtrlStructureMapper::__construct | ( | array | $ctrl_structure | ) |
ilCtrlStructureMapper Constructor
array<string,mixed> | $ctrl_structure |
Definition at line 38 of file class.ilCtrlStructureMapper.php.
References $ctrl_structure, and mapStructure().
|
private |
If a class has referenced another one as child or parent, this method adds a vise-versa mapping if it doesn't already exist.
string | $class_name | |
string | $key_ref_from | |
string | $key_ref_to |
Definition at line 64 of file class.ilCtrlStructureMapper.php.
References isStructureEntryValid(), and removeReference().
Referenced by mapStructure().
ilCtrlStructureMapper::getStructure | ( | ) |
Returns the current structure with mapped vise-versa references of each parent-child relation.
Definition at line 50 of file class.ilCtrlStructureMapper.php.
References $ctrl_structure.
|
private |
Helper function that returns whether an entry in the current structure is valid or not.
string | int | $index |
Definition at line 144 of file class.ilCtrlStructureMapper.php.
Referenced by addViseVersaMappingByClass(), and mapStructure().
|
private |
Maps the current structures references.
Definition at line 97 of file class.ilCtrlStructureMapper.php.
References $data, addViseVersaMappingByClass(), isStructureEntryValid(), ilCtrlStructureInterface\KEY_CLASS_CHILDREN, and ilCtrlStructureInterface\KEY_CLASS_PARENTS.
Referenced by __construct().
|
private |
Removes an entry within the given reference list for the given index and re-indexes the reference list afterwards.
array | $reference_list | |
string | int | $index |
Definition at line 128 of file class.ilCtrlStructureMapper.php.
Referenced by addViseVersaMappingByClass().
|
private |
Definition at line 31 of file class.ilCtrlStructureMapper.php.
Referenced by __construct(), and getStructure().