ILIAS  release_8 Revision v8.24
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}
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.