|
ILIAS
release_8 Revision v8.24
|
Class ilCtrlStructureMapper. More...
Collaboration diagram for ilCtrlStructureMapper: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 12 of file class.ilCtrlStructureMapper.php.
| ilCtrlStructureMapper::__construct | ( | array | $ctrl_structure | ) |
ilCtrlStructureMapper Constructor
| array<string,mixed> | $ctrl_structure |
Definition at line 24 of file class.ilCtrlStructureMapper.php.
References $ctrl_structure, and mapStructure().
Here is the call graph for this function:
|
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 50 of file class.ilCtrlStructureMapper.php.
References $index, isStructureEntryValid(), and removeReference().
Referenced by mapStructure().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCtrlStructureMapper::getStructure | ( | ) |
Returns the current structure with mapped vise-versa references of each parent-child relation.
Definition at line 36 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 130 of file class.ilCtrlStructureMapper.php.
References $index.
Referenced by addViseVersaMappingByClass(), and mapStructure().
Here is the caller graph for this function:
|
private |
Maps the current structures references.
Definition at line 83 of file class.ilCtrlStructureMapper.php.
References $data, addViseVersaMappingByClass(), isStructureEntryValid(), ilCtrlStructureInterface\KEY_CLASS_CHILDREN, and ilCtrlStructureInterface\KEY_CLASS_PARENTS.
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 114 of file class.ilCtrlStructureMapper.php.
References $index.
Referenced by addViseVersaMappingByClass().
Here is the caller graph for this function:
|
private |
Definition at line 17 of file class.ilCtrlStructureMapper.php.
Referenced by __construct(), and getStructure().