ILIAS
release_8 Revision v8.23
|
Class ilCtrlStructureHelper. More...
Public Member Functions | |
__construct (array $base_classes, array $ctrl_structure) | |
ilCtrlStructureHelper Constructor More... | |
mapStructureReferences () | |
Fluent mapper method that adds vise-versa references for each entry in the current ctrl structure - e.g. More... | |
filterUnnecessaryEntries () | |
Fluent filter method that removes structure entries, whose parent- and child-references are empty. More... | |
getStructure () | |
Returns the current ctrl structure. More... | |
Protected Attributes | |
array | $ctrl_structure |
array | $base_classes |
Class ilCtrlStructureHelper.
Definition at line 11 of file class.ilCtrlStructureHelper.php.
ilCtrlStructureHelper::__construct | ( | array | $base_classes, |
array | $ctrl_structure | ||
) |
ilCtrlStructureHelper Constructor
array | $base_classes | |
array | $ctrl_structure |
Definition at line 28 of file class.ilCtrlStructureHelper.php.
References $base_classes, and $ctrl_structure.
ilCtrlStructureHelper::filterUnnecessaryEntries | ( | ) |
Fluent filter method that removes structure entries, whose parent- and child-references are empty.
That means these classes are not considered necessary GUI classes. Such structure entries can be safely removed, because if they have neither children nor parents, they will never be called unless they are a baseclass itself.
Definition at line 62 of file class.ilCtrlStructureHelper.php.
References ILIAS\LTI\ToolProvider\$key, ilCtrlStructureInterface\KEY_CLASS_CHILDREN, and ilCtrlStructureInterface\KEY_CLASS_PARENTS.
ilCtrlStructureHelper::getStructure | ( | ) |
Returns the current ctrl structure.
Definition at line 85 of file class.ilCtrlStructureHelper.php.
References $ctrl_structure.
Referenced by mapStructureReferences().
ilCtrlStructureHelper::mapStructureReferences | ( | ) |
Fluent mapper method that adds vise-versa references for each entry in the current ctrl structure - e.g.
if a class has several parent classes, this class is added as a child class to each parent, and vise-versa. This method doesn't necessarily need to be called, as it's performance heavy, but for example when reading the ctrl structure the mappings are wished to be complete.
Definition at line 44 of file class.ilCtrlStructureHelper.php.
References getStructure().
|
protected |
Definition at line 21 of file class.ilCtrlStructureHelper.php.
Referenced by __construct().
|
protected |
Definition at line 16 of file class.ilCtrlStructureHelper.php.
Referenced by __construct(), and getStructure().