ILIAS
release_8 Revision v8.19
|
Class ilCtrlStructure holds the currently read control structure. More...
Public Member Functions | |
__construct (array $ctrl_structure, array $base_classes, array $security_info) | |
ilCtrlStructure Constructor More... | |
isBaseClass (string $class_name) | |
getObjNameByCid (string $cid) | |
getObjNameByName (string $class_name) | |
getClassNameByCid (string $cid) | |
getClassCidByName (string $class_name) | |
getRelativePathByName (string $class_name) | |
getRelativePathByCid (string $cid) | |
getChildrenByCid (string $cid) | |
getChildrenByName (string $class_name) | |
getParentsByCid (string $cid) | |
getParentsByName (string $class_name) | |
setPermanentParameterByClass (string $class_name, string $parameter_name) | |
removePermanentParametersByClass (string $class_name) | |
getPermanentParametersByClass (string $class_name) | |
setTemporaryParameterByClass (string $class_name, string $parameter_name, $value) | |
removeTemporaryParametersByClass (string $class_name) | |
getTemporaryParametersByClass (string $class_name) | |
removeSingleParameterByClass (string $class_name, string $parameter_name) | |
setReturnTargetByClass (string $class_name, string $target_url) | |
getReturnTargetByClass (string $class_name) | |
getUnsafeCommandsByCid (string $cid) | |
getUnsafeCommandsByName (string $class_name) | |
getSafeCommandsByCid (string $cid) | |
getSafeCommandsByName (string $class_name) | |
Private Member Functions | |
getValueForKeyByCid (string $identifier_key, string $cid) | |
Returns a stored structure value of the given key from the corresponding class mapped by CID. More... | |
getValueForKeyByName (string $identifier_key, string $class_name) | |
Returns a stored structure value of the given key from the corresponding class mapped by name. More... | |
lowercase (string $string) | |
Helper function to lowercase strings. More... | |
Private Attributes | |
const | PARAM_NAME_REGEX = '/^[A-Za-z0-9_-]*$/' |
array | $temporary_parameters = [] |
array | $permanent_parameters = [] |
array | $return_targets = [] |
array | $structure |
array | $base_classes |
array | $security |
array | $mapped_structure = [] |
Additional Inherited Members | |
![]() | |
const | KEY_CLASS_CID = 'cid' |
array key constants that are used for certain information. More... | |
const | KEY_CLASS_PATH = 'class_path' |
const | KEY_CLASS_NAME = 'class_name' |
const | KEY_CLASS_CID_PATHS = 'cid_paths' |
const | KEY_CLASS_PARENTS = 'parents' |
const | KEY_CLASS_CHILDREN = 'children' |
const | KEY_UNSAFE_COMMANDS = 'unsafe_commands' |
const | KEY_SAFE_COMMANDS = 'safe_commands' |
Class ilCtrlStructure holds the currently read control structure.
Definition at line 12 of file class.ilCtrlStructure.php.
ilCtrlStructure::__construct | ( | array | $ctrl_structure, |
array | $base_classes, | ||
array | $security_info | ||
) |
ilCtrlStructure Constructor
array | $ctrl_structure | |
array | $base_classes | |
array | $security_info |
Definition at line 71 of file class.ilCtrlStructure.php.
References $base_classes.
ilCtrlStructure::getChildrenByCid | ( | string | $cid | ) |
Implements ilCtrlStructureInterface.
Definition at line 149 of file class.ilCtrlStructure.php.
References getValueForKeyByCid().
ilCtrlStructure::getChildrenByName | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 162 of file class.ilCtrlStructure.php.
References getValueForKeyByName().
ilCtrlStructure::getClassCidByName | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 125 of file class.ilCtrlStructure.php.
References getValueForKeyByName().
Referenced by isBaseClass().
ilCtrlStructure::getClassNameByCid | ( | string | $cid | ) |
Implements ilCtrlStructureInterface.
Definition at line 112 of file class.ilCtrlStructure.php.
References getValueForKeyByCid(), and lowercase().
Referenced by getSafeCommandsByCid(), and getUnsafeCommandsByCid().
ilCtrlStructure::getObjNameByCid | ( | string | $cid | ) |
Implements ilCtrlStructureInterface.
Definition at line 96 of file class.ilCtrlStructure.php.
References getValueForKeyByCid().
ilCtrlStructure::getObjNameByName | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 104 of file class.ilCtrlStructure.php.
References getValueForKeyByName().
ilCtrlStructure::getParentsByCid | ( | string | $cid | ) |
Implements ilCtrlStructureInterface.
Definition at line 175 of file class.ilCtrlStructure.php.
References getValueForKeyByCid().
ilCtrlStructure::getParentsByName | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 188 of file class.ilCtrlStructure.php.
References getValueForKeyByName().
ilCtrlStructure::getPermanentParametersByClass | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 228 of file class.ilCtrlStructure.php.
References lowercase().
ilCtrlStructure::getRelativePathByCid | ( | string | $cid | ) |
Implements ilCtrlStructureInterface.
Definition at line 141 of file class.ilCtrlStructure.php.
References getValueForKeyByCid().
ilCtrlStructure::getRelativePathByName | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 133 of file class.ilCtrlStructure.php.
References getValueForKeyByName().
ilCtrlStructure::getReturnTargetByClass | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 305 of file class.ilCtrlStructure.php.
References lowercase().
ilCtrlStructure::getSafeCommandsByCid | ( | string | $cid | ) |
Implements ilCtrlStructureInterface.
Definition at line 334 of file class.ilCtrlStructure.php.
References getClassNameByCid(), and getSafeCommandsByName().
ilCtrlStructure::getSafeCommandsByName | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 347 of file class.ilCtrlStructure.php.
References lowercase().
Referenced by getSafeCommandsByCid().
ilCtrlStructure::getTemporaryParametersByClass | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 259 of file class.ilCtrlStructure.php.
References lowercase().
ilCtrlStructure::getUnsafeCommandsByCid | ( | string | $cid | ) |
Implements ilCtrlStructureInterface.
Definition at line 313 of file class.ilCtrlStructure.php.
References getClassNameByCid(), and getUnsafeCommandsByName().
ilCtrlStructure::getUnsafeCommandsByName | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 326 of file class.ilCtrlStructure.php.
References lowercase().
Referenced by getUnsafeCommandsByCid().
|
private |
Returns a stored structure value of the given key from the corresponding class mapped by CID.
string | $identifier_key | |
string | $cid |
Definition at line 359 of file class.ilCtrlStructure.php.
Referenced by getChildrenByCid(), getClassNameByCid(), getObjNameByCid(), getParentsByCid(), and getRelativePathByCid().
|
private |
Returns a stored structure value of the given key from the corresponding class mapped by name.
string | $identifier_key | |
string | $class_name |
Definition at line 382 of file class.ilCtrlStructure.php.
References lowercase().
Referenced by getChildrenByName(), getClassCidByName(), getObjNameByName(), getParentsByName(), and getRelativePathByName().
ilCtrlStructure::isBaseClass | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 84 of file class.ilCtrlStructure.php.
References getClassCidByName(), and lowercase().
|
private |
Helper function to lowercase strings.
string | $string |
Definition at line 397 of file class.ilCtrlStructure.php.
Referenced by getClassNameByCid(), getPermanentParametersByClass(), getReturnTargetByClass(), getSafeCommandsByName(), getTemporaryParametersByClass(), getUnsafeCommandsByName(), getValueForKeyByName(), isBaseClass(), removePermanentParametersByClass(), removeSingleParameterByClass(), removeTemporaryParametersByClass(), setPermanentParameterByClass(), setReturnTargetByClass(), and setTemporaryParameterByClass().
ilCtrlStructure::removePermanentParametersByClass | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 217 of file class.ilCtrlStructure.php.
References lowercase().
ilCtrlStructure::removeSingleParameterByClass | ( | string | $class_name, |
string | $parameter_name | ||
) |
Implements ilCtrlStructureInterface.
Definition at line 267 of file class.ilCtrlStructure.php.
References $index, and lowercase().
ilCtrlStructure::removeTemporaryParametersByClass | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 248 of file class.ilCtrlStructure.php.
References lowercase().
ilCtrlStructure::setPermanentParameterByClass | ( | string | $class_name, |
string | $parameter_name | ||
) |
Implements ilCtrlStructureInterface.
Definition at line 201 of file class.ilCtrlStructure.php.
References lowercase(), and ilCtrlInterface\PROTECTED_PARAMETERS.
ilCtrlStructure::setReturnTargetByClass | ( | string | $class_name, |
string | $target_url | ||
) |
Implements ilCtrlStructureInterface.
Definition at line 297 of file class.ilCtrlStructure.php.
References lowercase().
ilCtrlStructure::setTemporaryParameterByClass | ( | string | $class_name, |
string | $parameter_name, | ||
$value | |||
) |
Implements ilCtrlStructureInterface.
Definition at line 236 of file class.ilCtrlStructure.php.
References lowercase().
|
private |
Definition at line 50 of file class.ilCtrlStructure.php.
Referenced by __construct().
|
private |
Definition at line 63 of file class.ilCtrlStructure.php.
|
private |
Definition at line 32 of file class.ilCtrlStructure.php.
|
private |
Definition at line 38 of file class.ilCtrlStructure.php.
|
private |
Definition at line 56 of file class.ilCtrlStructure.php.
|
private |
Definition at line 44 of file class.ilCtrlStructure.php.
|
private |
Definition at line 25 of file class.ilCtrlStructure.php.
|
private |
Definition at line 18 of file class.ilCtrlStructure.php.