ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
interface.ilCtrlStructureInterface.php
Go to the documentation of this file.
1 <?php
2 
25 {
29  public const KEY_CLASS_CID = 'cid';
30  public const KEY_CLASS_PATH = 'class_path';
31  public const KEY_CLASS_NAME = 'class_name';
32  public const KEY_CLASS_CID_PATHS = 'cid_paths';
33  public const KEY_CLASS_PARENTS = 'parents';
34  public const KEY_CLASS_CHILDREN = 'children';
35  public const KEY_UNSAFE_COMMANDS = 'unsafe_commands';
36  public const KEY_SAFE_COMMANDS = 'safe_commands';
37 
45  public function isBaseClass(string $class_name): bool;
46 
54  public function getObjNameByCid(string $cid): ?string;
55 
63  public function getObjNameByName(string $class_name): ?string;
64 
71  public function getClassNameByCid(string $cid): ?string;
72 
79  public function getClassCidByName(string $class_name): ?string;
80 
87  public function getRelativePathByName(string $class_name): ?string;
88 
95  public function getRelativePathByCid(string $cid): ?string;
96 
103  public function getChildrenByCid(string $cid): ?array;
104 
111  public function getChildrenByName(string $class_name): ?array;
112 
119  public function getParentsByCid(string $cid): ?array;
120 
127  public function getParentsByName(string $class_name): ?array;
128 
137  public function setPermanentParameterByClass(string $class_name, string $parameter_name): void;
138 
144  public function removePermanentParametersByClass(string $class_name): void;
145 
152  public function getPermanentParametersByClass(string $class_name): ?array;
153 
163  public function setTemporaryParameterByClass(string $class_name, string $parameter_name, $value): void;
164 
170  public function removeTemporaryParametersByClass(string $class_name): void;
171 
178  public function getTemporaryParametersByClass(string $class_name): ?array;
179 
186  public function removeSingleParameterByClass(string $class_name, string $parameter_name): void;
187 
194  public function setReturnTargetByClass(string $class_name, string $target_url): void;
195 
202  public function getReturnTargetByClass(string $class_name): ?string;
203 
210  public function getUnsafeCommandsByCid(string $cid): array;
211 
218  public function getUnsafeCommandsByName(string $class_name): array;
219 
226  public function getSafeCommandsByCid(string $cid): array;
227 
234  public function getSafeCommandsByName(string $class_name): array;
235 }
setReturnTargetByClass(string $class_name, string $target_url)
Sets a target URL for the given class in order to reach it.
getRelativePathByCid(string $cid)
Returns the absolute path of a class for the given CID.
getClassCidByName(string $class_name)
Returns the CID of the given classname.
removeTemporaryParametersByClass(string $class_name)
Removes all temporarily set parameter => value pairs for the given class.
getUnsafeCommandsByCid(string $cid)
Returns all unsafe GET commands for a given cid.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isBaseClass(string $class_name)
Returns whether the given class is registered as a valid baseclass (module or service class) in the d...
getChildrenByName(string $class_name)
Returns all classes that can be called by the given class.
getObjNameByCid(string $cid)
Returns the qualified object name of a class for the given CID, which can be used to instantiate the ...
getClassNameByCid(string $cid)
Returns the lower-cased name of a class for the given CID.
getReturnTargetByClass(string $class_name)
Returns a target URL for the given class in order to reach it.
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...
const KEY_CLASS_CID
array key constants that are used for certain information.
getTemporaryParametersByClass(string $class_name)
Returns all temporary parameters currently set for a given class.
getParentsByCid(string $cid)
Returns all classes that can call a class for the given CID.
removeSingleParameterByClass(string $class_name, string $parameter_name)
Removes a specific permanent or temporary parameter for the given class.
getChildrenByCid(string $cid)
Returns all classes that can be called by a class for the given CID.
getPermanentParametersByClass(string $class_name)
Returns all permanent parameters for the given class.
getSafeCommandsByCid(string $cid)
Returns all safe POST commands for a given cid.
getUnsafeCommandsByName(string $class_name)
Returns all unsafe GET commands for a given classname.
setPermanentParameterByClass(string $class_name, string $parameter_name)
Saves a parameter for the given class, that should be fetched with every request including it...
getParentsByName(string $class_name)
Returns all classes that can call the given class.
getRelativePathByName(string $class_name)
Returns the absolute path of a class for the given name.
removePermanentParametersByClass(string $class_name)
Removes all permanent parameters for the given class.
getSafeCommandsByName(string $class_name)
Returns all safe POST commands for a given classname.
getObjNameByName(string $class_name)
Returns the qualified object name of a given class, which can be used to instantiate the object...