49 self::PARAM_BASE_CLASS,
50 self::PARAM_CMD_CLASS,
52 self::PARAM_CSRF_TOKEN,
69 public function callBaseClass(
string $a_base_class = null): void;
93 public function getHTML(
object $a_gui_object, array $a_parameters = null): string;
101 public function getCmd(
string $fallback_command = null): ?string;
111 public function setCmd(?
string $a_cmd): void;
139 public function getNextClass($a_gui_class = null): ?string;
150 public function saveParameter(
object $a_gui_obj, $a_parameter): void;
179 public function setParameter(
object $a_gui_obj,
string $a_parameter, $a_value): void;
248 string $a_cmd = null,
249 string $a_anchor = null,
250 bool $is_async =
false,
251 bool $has_xml_style =
false 267 string $a_cmd = null,
268 string $a_anchor = null,
269 bool $is_async =
false,
270 bool $has_xml_style =
false 285 string $a_fallback_cmd = null,
286 string $a_anchor = null,
287 bool $is_async =
false,
288 bool $has_xml_style =
false 304 string $a_fallback_cmd = null,
305 string $a_anchor = null,
306 bool $is_async =
false,
307 bool $has_xml_style =
false 321 string $a_cmd = null,
322 string $a_anchor = null,
323 bool $is_async =
false 337 string $a_cmd = null,
338 string $a_anchor = null,
339 bool $is_async =
false 440 public function setReturn(
object $a_gui_obj,
string $a_cmd = null): void;
450 public function setReturnByClass(
string $a_class,
string $a_cmd = null): void;
482 public function returnToParent(
object $a_gui_obj,
string $a_anchor = null): void;
504 public function insertCtrlCalls($a_parent, $a_child,
string $a_comp_prefix): void;
getLinkTarget(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
Returns a link target for the given information.
setParameterByClass(string $a_class, string $a_parameter, $a_value)
Sets a parameter for the given GUI class and appends the given value as well.
const CMD_MODE_PROCESS
different modes used for UI plugins (or in dev-mode).
saveParameterByClass(string $a_class, $a_parameter)
Sets a parameter for the given GUI class that must be passed in every target link generation...
getHTML(object $a_gui_object, array $a_parameters=null)
Returns the HTML output of another GUI object by invoking getHTML() with optional parameters on it...
saveParameter(object $a_gui_obj, $a_parameter)
Sets parameters for the given object.
const PROTECTED_PARAMETERS
clearParameters(object $a_gui_obj)
Removes all currently set or saved parameters for the given GUI object.
getFormAction(object $a_gui_obj, string $a_fallback_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
Returns a form action link for the given information.
clearParametersByClass(string $a_class)
Removes all currently set or saved parameters for the given GUI class.
clearParameterByClass(string $a_class, string $a_parameter)
Removes a specific parameter of a specific class that is currently set or saved.
getCallHistory()
Returns the descending stacktrace of ilCtrl calls that have been made.
getCmdClass()
Returns the fully-qualified classname of the requested command class.
getContextObjId()
Returns the current context's object id.
getClassForClasspath(string $a_class_path)
Returns the effective classname for a given path.
getFormActionByClass( $a_class, string $a_fallback_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
Returns a form action link for the given information.
getRedirectSource()
Returns the current redirect source.
const PARAM_CSRF_TOKEN
$_GET request parameter names, used throughout ilCtrl.
redirectToURL(string $target_url)
Redirects to the given target URL.
isAsynch()
Returns whether the current request is an asynchronous one.
forwardCommand(object $a_gui_object)
Forwards the request by invoking executeCommand() on the given GUI object.
getCurrentClassPath()
Get current class path as array of class file names.
getCmd(string $fallback_command=null)
Returns the command passed with the current POST or GET request.
insertCtrlCalls($a_parent, $a_child, string $a_comp_prefix)
Inserts an ilCtrl call record into the database.
getParameterArrayByClass(string $a_class)
Returns all parameters that have been saved or set for a given GUI class.
setCmdClass($a_cmd_class)
Sets the command class that should be executed next.
setContextObject(int $obj_id, string $obj_type)
Sets the current object (id and type) of ilCtrl's context.
callBaseClass(string $a_base_class=null)
Calls the currently provided baseclass.
checkCurrentPathForClass(string $gui_class)
Check if current CID trace contains a certain gui class.
setCmd(?string $a_cmd)
Sets the current command.
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
Sets a parameter for the given GUI object and appends the given value.
getParameterArray(object $a_gui_obj)
Returns all parameters that have been saved or set for a GUI object.
redirectByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
Redirects to the provided GUI class.
setReturn(object $a_gui_obj, string $a_cmd=null)
Sets the return command of a given GUI object.
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
Returns a link target for the given information.
returnToParent(object $a_gui_obj, string $a_anchor=null)
Redirects to next parent class set with setReturn().
lookupOriginalClassName(string $a_class)
This method was introduced due to composer being case-sensitive when autoloading classes.
lookupClassPath(string $a_class)
Get class path that can be used in include statements for a given class name.
setReturnByClass(string $a_class, string $a_cmd=null)
Sets the return command of a given class.
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
Redirects to another GUI object.
getNextClass($a_gui_class=null)
Returns the fully-qualified classname of the next class in the control flow.
setTargetScript(string $a_target_script)
Sets the current ilCtrl target script (default ilias.php).
getContextObjType()
Returns the current context's object type.
getParentReturn(object $a_gui_obj)
getParentReturnByClass(string $a_class)