ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
interface.ilCtrlStructureInterface.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2021 Thibeau Fuhrer <thf@studer-raimann.ch> Extended GPL, see docs/LICENSE */
4 
11 {
15  public const KEY_CLASS_CID = 'cid';
16  public const KEY_CLASS_PATH = 'class_path';
17  public const KEY_CLASS_NAME = 'class_name';
18  public const KEY_CLASS_CID_PATHS = 'cid_paths';
19  public const KEY_CLASS_PARENTS = 'parents';
20  public const KEY_CLASS_CHILDREN = 'children';
21  public const KEY_UNSAFE_COMMANDS = 'unsafe_commands';
22  public const KEY_SAFE_COMMANDS = 'safe_commands';
23 
31  public function isBaseClass(string $class_name): bool;
32 
40  public function getObjNameByCid(string $cid): ?string;
41 
49  public function getObjNameByName(string $class_name): ?string;
50 
57  public function getClassNameByCid(string $cid): ?string;
58 
65  public function getClassCidByName(string $class_name): ?string;
66 
73  public function getRelativePathByName(string $class_name): ?string;
74 
81  public function getRelativePathByCid(string $cid): ?string;
82 
89  public function getChildrenByCid(string $cid): ?array;
90 
97  public function getChildrenByName(string $class_name): ?array;
98 
105  public function getParentsByCid(string $cid): ?array;
106 
113  public function getParentsByName(string $class_name): ?array;
114 
123  public function setPermanentParameterByClass(string $class_name, string $parameter_name): void;
124 
130  public function removePermanentParametersByClass(string $class_name): void;
131 
138  public function getPermanentParametersByClass(string $class_name): ?array;
139 
149  public function setTemporaryParameterByClass(string $class_name, string $parameter_name, $value): void;
150 
156  public function removeTemporaryParametersByClass(string $class_name): void;
157 
164  public function getTemporaryParametersByClass(string $class_name): ?array;
165 
172  public function removeSingleParameterByClass(string $class_name, string $parameter_name): void;
173 
180  public function setReturnTargetByClass(string $class_name, string $target_url): void;
181 
188  public function getReturnTargetByClass(string $class_name): ?string;
189 
196  public function getUnsafeCommandsByCid(string $cid): array;
197 
204  public function getUnsafeCommandsByName(string $class_name): array;
205 
212  public function getSafeCommandsByCid(string $cid): array;
213 
220  public function getSafeCommandsByName(string $class_name): array;
221 }
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.
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...