ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
|
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 25 of file class.ilCtrlStructureHelper.php.
ilCtrlStructureHelper::__construct | ( | array | $base_classes, |
array | $ctrl_structure | ||
) |
ilCtrlStructureHelper Constructor
array | $base_classes | |
array | $ctrl_structure |
Definition at line 42 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 76 of file class.ilCtrlStructureHelper.php.
References ilCtrlStructureInterface\KEY_CLASS_CHILDREN, and ilCtrlStructureInterface\KEY_CLASS_PARENTS.
ilCtrlStructureHelper::getStructure | ( | ) |
Returns the current ctrl structure.
Definition at line 99 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 58 of file class.ilCtrlStructureHelper.php.
References getStructure().
|
protected |
Definition at line 35 of file class.ilCtrlStructureHelper.php.
Referenced by __construct().
|
protected |
Definition at line 30 of file class.ilCtrlStructureHelper.php.
Referenced by __construct(), and getStructure().