ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
removeTemporaryParametersByClass(string $class_name)
Removes all temporarily set parameter => value pairs for the given class.
getPermanentParametersByClass(string $class_name)
Returns all permanent parameters for the given class.
getObjNameByName(string $class_name)
Returns the qualified object name of a given class, which can be used to instantiate the object.
getParentsByCid(string $cid)
Returns all classes that can call a class for the given CID.
getSafeCommandsByName(string $class_name)
Returns all safe POST 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.
getSafeCommandsByCid(string $cid)
Returns all safe POST commands for a given cid.
getClassNameByCid(string $cid)
Returns the lower-cased name of a class for the given CID.
getRelativePathByName(string $class_name)
Returns the absolute path of a class for the given name.
removeSingleParameterByClass(string $class_name, string $parameter_name)
Removes a specific permanent or temporary parameter for the given class.
getReturnTargetByClass(string $class_name)
Returns a target URL for the given class in order to reach it.
removePermanentParametersByClass(string $class_name)
Removes all permanent parameters for the given class.
getParentsByName(string $class_name)
Returns all classes that can call the given class.
getRelativePathByCid(string $cid)
Returns the absolute path of a class for the given CID.
getChildrenByName(string $class_name)
Returns all classes that can be called by the given class.
setReturnTargetByClass(string $class_name, string $target_url)
Sets a target URL for the given class in order to reach it.
const KEY_CLASS_CID
array key constants that are used for certain information.
getObjNameByCid(string $cid)
Returns the qualified object name of a class for the given CID, which can be used to instantiate the ...
getClassCidByName(string $class_name)
Returns the CID of the given classname.
getUnsafeCommandsByName(string $class_name)
Returns all unsafe GET commands for a given classname.
isBaseClass(string $class_name)
Returns whether the given class is registered as a valid baseclass (module or service class) in the d...
getTemporaryParametersByClass(string $class_name)
Returns all temporary parameters currently set for a given class.
getUnsafeCommandsByCid(string $cid)
Returns all unsafe GET commands for a given cid.
getChildrenByCid(string $cid)
Returns all classes that can be called by a class for the given CID.
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.