|
ILIAS
release_8 Revision v8.24
|
Class ilCtrlStructure holds the currently read control structure. More...
Inheritance diagram for ilCtrlStructure:
Collaboration diagram for ilCtrlStructure:Public Member Functions | |
| __construct (array $ctrl_structure, array $base_classes, array $security_info) | |
| ilCtrlStructure Constructor More... | |
| isBaseClass (string $class_name) | |
| @inheritDoc More... | |
| getObjNameByCid (string $cid) | |
| @inheritDoc More... | |
| getObjNameByName (string $class_name) | |
| @inheritDoc More... | |
| getClassNameByCid (string $cid) | |
| @inheritDoc More... | |
| getClassCidByName (string $class_name) | |
| @inheritDoc More... | |
| getRelativePathByName (string $class_name) | |
| @inheritDoc More... | |
| getRelativePathByCid (string $cid) | |
| @inheritDoc More... | |
| getChildrenByCid (string $cid) | |
| @inheritDoc More... | |
| getChildrenByName (string $class_name) | |
| @inheritDoc More... | |
| getParentsByCid (string $cid) | |
| @inheritDoc More... | |
| getParentsByName (string $class_name) | |
| @inheritDoc More... | |
| setPermanentParameterByClass (string $class_name, string $parameter_name) | |
| @inheritDoc More... | |
| removePermanentParametersByClass (string $class_name) | |
| @inheritDoc More... | |
| getPermanentParametersByClass (string $class_name) | |
| @inheritDoc More... | |
| setTemporaryParameterByClass (string $class_name, string $parameter_name, $value) | |
| @inheritDoc More... | |
| removeTemporaryParametersByClass (string $class_name) | |
| @inheritDoc More... | |
| getTemporaryParametersByClass (string $class_name) | |
| @inheritDoc More... | |
| removeSingleParameterByClass (string $class_name, string $parameter_name) | |
| @inheritDoc More... | |
| setReturnTargetByClass (string $class_name, string $target_url) | |
| @inheritDoc More... | |
| getReturnTargetByClass (string $class_name) | |
| @inheritDoc More... | |
| getUnsafeCommandsByCid (string $cid) | |
| @inheritDoc More... | |
| getUnsafeCommandsByName (string $class_name) | |
| @inheritDoc More... | |
| getSafeCommandsByCid (string $cid) | |
| @inheritDoc More... | |
| getSafeCommandsByName (string $class_name) | |
| @inheritDoc More... | |
| isBaseClass (string $class_name) | |
| Returns whether the given class is registered as a valid baseclass (module or service class) in the database. More... | |
| getObjNameByCid (string $cid) | |
| Returns the qualified object name of a class for the given CID, which can be used to instantiate the object. More... | |
| getObjNameByName (string $class_name) | |
| Returns the qualified object name of a given class, which can be used to instantiate the object. More... | |
| getClassNameByCid (string $cid) | |
| Returns the lower-cased name of a class for the given CID. More... | |
| getClassCidByName (string $class_name) | |
| Returns the CID of the given classname. More... | |
| getRelativePathByName (string $class_name) | |
| Returns the absolute path of a class for the given name. More... | |
| getRelativePathByCid (string $cid) | |
| Returns the absolute path of a class for the given CID. More... | |
| getChildrenByCid (string $cid) | |
| Returns all classes that can be called by a class for the given CID. More... | |
| getChildrenByName (string $class_name) | |
| Returns all classes that can be called by the given class. More... | |
| getParentsByCid (string $cid) | |
| Returns all classes that can call a class for the given CID. More... | |
| getParentsByName (string $class_name) | |
| Returns all classes that can call the given class. More... | |
| setPermanentParameterByClass (string $class_name, string $parameter_name) | |
| Saves a parameter for the given class, that should be fetched with every request including it. More... | |
| removePermanentParametersByClass (string $class_name) | |
| Removes all permanent parameters for the given class. More... | |
| getPermanentParametersByClass (string $class_name) | |
| Returns all permanent parameters for the given class. More... | |
| setTemporaryParameterByClass (string $class_name, string $parameter_name, $value) | |
| Sets a parameter => value pair for the given class which will be appended for the next request. More... | |
| removeTemporaryParametersByClass (string $class_name) | |
| Removes all temporarily set parameter => value pairs for the given class. More... | |
| getTemporaryParametersByClass (string $class_name) | |
| Returns all temporary parameters currently set for a given class. More... | |
| removeSingleParameterByClass (string $class_name, string $parameter_name) | |
| Removes a specific permanent or temporary parameter for the given class. More... | |
| setReturnTargetByClass (string $class_name, string $target_url) | |
| Sets a target URL for the given class in order to reach it. More... | |
| getReturnTargetByClass (string $class_name) | |
| Returns a target URL for the given class in order to reach it. More... | |
| getUnsafeCommandsByCid (string $cid) | |
| Returns all unsafe GET commands for a given cid. More... | |
| getUnsafeCommandsByName (string $class_name) | |
| Returns all unsafe GET commands for a given classname. More... | |
| getSafeCommandsByCid (string $cid) | |
| Returns all safe POST commands for a given cid. More... | |
| getSafeCommandsByName (string $class_name) | |
| Returns all safe POST commands for a given classname. More... | |
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 | |
Data Fields inherited from ilCtrlStructureInterface | |
| 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 | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 149 of file class.ilCtrlStructure.php.
References getValueForKeyByCid().
Here is the call graph for this function:| ilCtrlStructure::getChildrenByName | ( | string | $class_name | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 162 of file class.ilCtrlStructure.php.
References getValueForKeyByName().
Here is the call graph for this function:| ilCtrlStructure::getClassCidByName | ( | string | $class_name | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 125 of file class.ilCtrlStructure.php.
References getValueForKeyByName().
Referenced by isBaseClass().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCtrlStructure::getClassNameByCid | ( | string | $cid | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 112 of file class.ilCtrlStructure.php.
References getValueForKeyByCid(), and lowercase().
Referenced by getSafeCommandsByCid(), and getUnsafeCommandsByCid().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCtrlStructure::getObjNameByCid | ( | string | $cid | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 96 of file class.ilCtrlStructure.php.
References getValueForKeyByCid().
Here is the call graph for this function:| ilCtrlStructure::getObjNameByName | ( | string | $class_name | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 104 of file class.ilCtrlStructure.php.
References getValueForKeyByName().
Here is the call graph for this function:| ilCtrlStructure::getParentsByCid | ( | string | $cid | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 175 of file class.ilCtrlStructure.php.
References getValueForKeyByCid().
Here is the call graph for this function:| ilCtrlStructure::getParentsByName | ( | string | $class_name | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 188 of file class.ilCtrlStructure.php.
References getValueForKeyByName().
Here is the call graph for this function:| ilCtrlStructure::getPermanentParametersByClass | ( | string | $class_name | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 228 of file class.ilCtrlStructure.php.
References lowercase().
Here is the call graph for this function:| ilCtrlStructure::getRelativePathByCid | ( | string | $cid | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 141 of file class.ilCtrlStructure.php.
References getValueForKeyByCid().
Here is the call graph for this function:| ilCtrlStructure::getRelativePathByName | ( | string | $class_name | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 133 of file class.ilCtrlStructure.php.
References getValueForKeyByName().
Here is the call graph for this function:| ilCtrlStructure::getReturnTargetByClass | ( | string | $class_name | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 305 of file class.ilCtrlStructure.php.
References lowercase().
Here is the call graph for this function:| ilCtrlStructure::getSafeCommandsByCid | ( | string | $cid | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 334 of file class.ilCtrlStructure.php.
References getClassNameByCid(), and getSafeCommandsByName().
Here is the call graph for this function:| ilCtrlStructure::getSafeCommandsByName | ( | string | $class_name | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 347 of file class.ilCtrlStructure.php.
References ilCtrlStructureInterface\KEY_SAFE_COMMANDS, and lowercase().
Referenced by getSafeCommandsByCid().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCtrlStructure::getTemporaryParametersByClass | ( | string | $class_name | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 259 of file class.ilCtrlStructure.php.
References lowercase().
Here is the call graph for this function:| ilCtrlStructure::getUnsafeCommandsByCid | ( | string | $cid | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 313 of file class.ilCtrlStructure.php.
References getClassNameByCid(), and getUnsafeCommandsByName().
Here is the call graph for this function:| ilCtrlStructure::getUnsafeCommandsByName | ( | string | $class_name | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 326 of file class.ilCtrlStructure.php.
References ilCtrlStructureInterface\KEY_UNSAFE_COMMANDS, and lowercase().
Referenced by getUnsafeCommandsByCid().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCtrlStructure::isBaseClass | ( | string | $class_name | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 84 of file class.ilCtrlStructure.php.
References getClassCidByName(), and lowercase().
Here is the call graph for this function:
|
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().
Here is the caller graph for this function:| ilCtrlStructure::removePermanentParametersByClass | ( | string | $class_name | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 217 of file class.ilCtrlStructure.php.
References lowercase().
Here is the call graph for this function:| ilCtrlStructure::removeSingleParameterByClass | ( | string | $class_name, |
| string | $parameter_name | ||
| ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 267 of file class.ilCtrlStructure.php.
References $index, $permanent_parameters, and lowercase().
Here is the call graph for this function:| ilCtrlStructure::removeTemporaryParametersByClass | ( | string | $class_name | ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 248 of file class.ilCtrlStructure.php.
References lowercase().
Here is the call graph for this function:| ilCtrlStructure::setPermanentParameterByClass | ( | string | $class_name, |
| string | $parameter_name | ||
| ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 201 of file class.ilCtrlStructure.php.
References lowercase(), and ilCtrlInterface\PROTECTED_PARAMETERS.
Here is the call graph for this function:| ilCtrlStructure::setReturnTargetByClass | ( | string | $class_name, |
| string | $target_url | ||
| ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 297 of file class.ilCtrlStructure.php.
References lowercase().
Here is the call graph for this function:| ilCtrlStructure::setTemporaryParameterByClass | ( | string | $class_name, |
| string | $parameter_name, | ||
| $value | |||
| ) |
@inheritDoc
Implements ilCtrlStructureInterface.
Definition at line 236 of file class.ilCtrlStructure.php.
References lowercase().
Here is the call graph for this function:
|
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.
Referenced by removeSingleParameterByClass().
|
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.