50 self::PARAM_BASE_CLASS,
51 self::PARAM_CMD_CLASS,
53 self::PARAM_CSRF_TOKEN,
72 public function callBaseClass(
string $a_base_class = null): void;
96 public function getHTML(
object $a_gui_object, array $a_parameters = null): string;
105 public function getCmd(
string $fallback_command = null): ?string;
115 public function setCmd(?
string $a_cmd): void;
143 public function getNextClass($a_gui_class = null): ?string;
154 public function saveParameter(
object $a_gui_obj, $a_parameter): void;
183 public function setParameter(
object $a_gui_obj,
string $a_parameter, $a_value): void;
252 string $a_cmd = null,
253 string $a_anchor = null,
254 bool $is_async =
false,
255 bool $has_xml_style =
false 271 string $a_cmd = null,
272 string $a_anchor = null,
273 bool $is_async =
false,
274 bool $has_xml_style =
false 289 string $a_fallback_cmd = null,
290 string $a_anchor = null,
291 bool $is_async =
false,
292 bool $has_xml_style =
false 308 string $a_fallback_cmd = null,
309 string $a_anchor = null,
310 bool $is_async =
false,
311 bool $has_xml_style =
false 325 string $a_cmd = null,
326 string $a_anchor = null,
327 bool $is_async =
false 341 string $a_cmd = null,
342 string $a_anchor = null,
343 bool $is_async =
false 444 public function setReturn(
object $a_gui_obj,
string $a_cmd = null): void;
454 public function setReturnByClass(
string $a_class,
string $a_cmd = null): void;
486 public function returnToParent(
object $a_gui_obj,
string $a_anchor = null): void;
508 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.
attachObserver(ilCtrlObserver $observer, ilCtrlEvent $event=ilCtrlEvent::ALL)
Attaches an observer to ALL or a specific.
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...
detachObserver(ilCtrlObserver $observer, ilCtrlEvent $event=ilCtrlEvent::ALL)
Detaches an observer from ALL or a specific.
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.
event string being used if
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 and fires an according ilCt...
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 and fires an according ilCtrlEvent...
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)