ILIAS
trunk Revision v11.0_alpha-1851-ga8564da6fed
|
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 26 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 85 of file class.ilCtrlStructure.php.
References $base_classes.
ilCtrlStructure::getChildrenByCid | ( | string | $cid | ) |
Implements ilCtrlStructureInterface.
Definition at line 163 of file class.ilCtrlStructure.php.
References getValueForKeyByCid(), and null.
ilCtrlStructure::getChildrenByName | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 176 of file class.ilCtrlStructure.php.
References getValueForKeyByName(), and null.
ilCtrlStructure::getClassCidByName | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 139 of file class.ilCtrlStructure.php.
References getValueForKeyByName().
Referenced by isBaseClass().
ilCtrlStructure::getClassNameByCid | ( | string | $cid | ) |
Implements ilCtrlStructureInterface.
Definition at line 126 of file class.ilCtrlStructure.php.
References getValueForKeyByCid(), lowercase(), and null.
Referenced by getSafeCommandsByCid(), and getUnsafeCommandsByCid().
ilCtrlStructure::getObjNameByCid | ( | string | $cid | ) |
Implements ilCtrlStructureInterface.
Definition at line 110 of file class.ilCtrlStructure.php.
References getValueForKeyByCid().
ilCtrlStructure::getObjNameByName | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 118 of file class.ilCtrlStructure.php.
References getValueForKeyByName().
ilCtrlStructure::getParentsByCid | ( | string | $cid | ) |
Implements ilCtrlStructureInterface.
Definition at line 189 of file class.ilCtrlStructure.php.
References getValueForKeyByCid(), and null.
ilCtrlStructure::getParentsByName | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 202 of file class.ilCtrlStructure.php.
References getValueForKeyByName(), and null.
ilCtrlStructure::getPermanentParametersByClass | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 242 of file class.ilCtrlStructure.php.
References lowercase(), and null.
ilCtrlStructure::getRelativePathByCid | ( | string | $cid | ) |
Implements ilCtrlStructureInterface.
Definition at line 155 of file class.ilCtrlStructure.php.
References getValueForKeyByCid().
ilCtrlStructure::getRelativePathByName | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 147 of file class.ilCtrlStructure.php.
References getValueForKeyByName().
ilCtrlStructure::getReturnTargetByClass | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 319 of file class.ilCtrlStructure.php.
References lowercase(), and null.
ilCtrlStructure::getSafeCommandsByCid | ( | string | $cid | ) |
Implements ilCtrlStructureInterface.
Definition at line 348 of file class.ilCtrlStructure.php.
References getClassNameByCid(), getSafeCommandsByName(), and null.
ilCtrlStructure::getSafeCommandsByName | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 361 of file class.ilCtrlStructure.php.
References lowercase().
Referenced by getSafeCommandsByCid().
ilCtrlStructure::getTemporaryParametersByClass | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 273 of file class.ilCtrlStructure.php.
References lowercase(), and null.
ilCtrlStructure::getUnsafeCommandsByCid | ( | string | $cid | ) |
Implements ilCtrlStructureInterface.
Definition at line 327 of file class.ilCtrlStructure.php.
References getClassNameByCid(), getUnsafeCommandsByName(), and null.
ilCtrlStructure::getUnsafeCommandsByName | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 340 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 373 of file class.ilCtrlStructure.php.
References null.
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 396 of file class.ilCtrlStructure.php.
References lowercase(), and null.
Referenced by getChildrenByName(), getClassCidByName(), getObjNameByName(), getParentsByName(), and getRelativePathByName().
ilCtrlStructure::isBaseClass | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 98 of file class.ilCtrlStructure.php.
References getClassCidByName(), lowercase(), and null.
|
private |
Helper function to lowercase strings.
string | $string |
Definition at line 411 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 231 of file class.ilCtrlStructure.php.
References lowercase().
ilCtrlStructure::removeSingleParameterByClass | ( | string | $class_name, |
string | $parameter_name | ||
) |
Implements ilCtrlStructureInterface.
Definition at line 281 of file class.ilCtrlStructure.php.
References lowercase().
ilCtrlStructure::removeTemporaryParametersByClass | ( | string | $class_name | ) |
Implements ilCtrlStructureInterface.
Definition at line 262 of file class.ilCtrlStructure.php.
References lowercase().
ilCtrlStructure::setPermanentParameterByClass | ( | string | $class_name, |
string | $parameter_name | ||
) |
Implements ilCtrlStructureInterface.
Definition at line 215 of file class.ilCtrlStructure.php.
References lowercase(), and ilCtrlInterface\PROTECTED_PARAMETERS.
ilCtrlStructure::setReturnTargetByClass | ( | string | $class_name, |
string | $target_url | ||
) |
Implements ilCtrlStructureInterface.
Definition at line 311 of file class.ilCtrlStructure.php.
References lowercase().
ilCtrlStructure::setTemporaryParameterByClass | ( | string | $class_name, |
string | $parameter_name, | ||
$value | |||
) |
Implements ilCtrlStructureInterface.
Definition at line 250 of file class.ilCtrlStructure.php.
References lowercase().
|
private |
Definition at line 64 of file class.ilCtrlStructure.php.
Referenced by __construct().
|
private |
Definition at line 77 of file class.ilCtrlStructure.php.
|
private |
Definition at line 46 of file class.ilCtrlStructure.php.
|
private |
Definition at line 52 of file class.ilCtrlStructure.php.
|
private |
Definition at line 70 of file class.ilCtrlStructure.php.
|
private |
Definition at line 58 of file class.ilCtrlStructure.php.
|
private |
Definition at line 39 of file class.ilCtrlStructure.php.
|
private |
Definition at line 32 of file class.ilCtrlStructure.php.