|
ILIAS
release_8 Revision v8.24
|
Class ilCtrlContext is responsible for holding the current context information. More...
Inheritance diagram for ilCtrlContext:
Collaboration diagram for ilCtrlContext:Public Member Functions | |
| __construct (ilCtrlPathFactory $path_factory, RequestWrapper $request_wrapper, Refinery $refinery) | |
| ilCtrlContext Constructor More... | |
| isAsync () | |
| @inheritDoc More... | |
| getRedirectSource () | |
| @inheritDoc More... | |
| getPath () | |
| @inheritDoc More... | |
| setCmdMode (string $mode) | |
| @inheritDoc More... | |
| getCmdMode () | |
| @inheritDoc More... | |
| setBaseClass (string $base_class) | |
| @inheritDoc More... | |
| getBaseClass () | |
| @inheritDoc More... | |
| setTargetScript (string $target_script) | |
| @inheritDoc More... | |
| getTargetScript () | |
| @inheritDoc More... | |
| setCmdClass (?string $cmd_class) | |
| @inheritDoc More... | |
| getCmdClass () | |
| @inheritDoc More... | |
| setCmd (?string $cmd) | |
| @inheritDoc More... | |
| getCmd () | |
| @inheritDoc More... | |
| setObjType (string $obj_type) | |
| @inheritDoc More... | |
| getObjType () | |
| @inheritDoc More... | |
| setObjId (int $obj_id) | |
| @inheritDoc More... | |
| getObjId () | |
| @inheritDoc More... | |
| isAsync () | |
| Returns whether this context is asynchronous or not. More... | |
| getRedirectSource () | |
| Returns where the request of this context was redirected from. More... | |
| getPath () | |
| Returns the path of this context. More... | |
| setCmdMode (string $mode) | |
| Sets the command mode of the current context. More... | |
| getCmdMode () | |
| Returns the command mode of the current context. More... | |
| setBaseClass (string $base_class) | |
| Sets the baseclass of the current context. More... | |
| getBaseClass () | |
| Returns the baseclass the current context. More... | |
| setTargetScript (string $target_script) | |
| Sets the target script of this context (usually ilias.php). More... | |
| getTargetScript () | |
| Returns the target script of this context. More... | |
| setCmdClass (?string $cmd_class) | |
| Sets the current contexts command class. More... | |
| getCmdClass () | |
| Returns the command class of this context. More... | |
| setCmd (?string $cmd) | |
| Sets the command which the current command- or baseclass should perform. More... | |
| getCmd () | |
| Returns the command which the current command- or baseclass should perform. More... | |
| setObjType (string $obj_type) | |
| Sets the object type of the current context. More... | |
| getObjType () | |
| Returns the object type of the current context. More... | |
| setObjId (int $obj_id) | |
| Sets the object id of the current context. More... | |
| getObjId () | |
| Returns the object id of the current context. More... | |
Protected Member Functions | |
| adoptRequestParameters () | |
| Adopts context properties from the according ones delivered by the current request. More... | |
| getQueryParam (string $parameter_name) | |
| Helper function to retrieve request parameter values by name. More... | |
Protected Attributes | |
| ilCtrlPathFactory | $path_factory |
| RequestWrapper | $request_wrapper |
| Refinery | $refinery |
| ilCtrlPathInterface | $path |
| bool | $is_async = false |
| string | $target_script = 'ilias.php' |
| string | $cmd_mode = null |
| string | $redirect = null |
| string | $base_class = null |
| string | $cmd_class = null |
| string | $cmd = null |
| string | $obj_type = null |
| int | $obj_id = null |
Class ilCtrlContext is responsible for holding the current context information.
Definition at line 30 of file class.ilCtrlContext.php.
| ilCtrlContext::__construct | ( | ilCtrlPathFactory | $path_factory, |
| RequestWrapper | $request_wrapper, | ||
| Refinery | $refinery | ||
| ) |
ilCtrlContext Constructor
| ilCtrlPathFactory | $path_factory | |
| RequestWrapper | $request_wrapper | |
| Refinery | $refinery |
Definition at line 104 of file class.ilCtrlContext.php.
References $path_factory, $refinery, $request_wrapper, adoptRequestParameters(), ilCtrlPathFactory\null(), and ILIAS\Repository\refinery().
Here is the call graph for this function:
|
protected |
Adopts context properties from the according ones delivered by the current request.
Note that this method should only be called when initializing ilCtrl, as methods may override delivered values on purpose later on.
Definition at line 285 of file class.ilCtrlContext.php.
References $base_class, $cmd_class, ilCtrlInterface\CMD_MODE_ASYNC, getQueryParam(), ilCtrlInterface\PARAM_BASE_CLASS, ilCtrlInterface\PARAM_CID_PATH, ilCtrlInterface\PARAM_CMD, ilCtrlInterface\PARAM_CMD_CLASS, ilCtrlInterface\PARAM_CMD_MODE, ilCtrlInterface\PARAM_REDIRECT, setBaseClass(), and setCmdClass().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCtrlContext::getBaseClass | ( | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 177 of file class.ilCtrlContext.php.
References $base_class.
| ilCtrlContext::getCmd | ( | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 238 of file class.ilCtrlContext.php.
References $cmd.
| ilCtrlContext::getCmdClass | ( | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 218 of file class.ilCtrlContext.php.
References $base_class.
| ilCtrlContext::getCmdMode | ( | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 150 of file class.ilCtrlContext.php.
References $cmd_mode.
| ilCtrlContext::getObjId | ( | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 272 of file class.ilCtrlContext.php.
References $obj_id.
| ilCtrlContext::getObjType | ( | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 255 of file class.ilCtrlContext.php.
References $obj_type.
| ilCtrlContext::getPath | ( | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 133 of file class.ilCtrlContext.php.
References $path.
|
protected |
Helper function to retrieve request parameter values by name.
| string | $parameter_name |
Definition at line 324 of file class.ilCtrlContext.php.
References ILIAS\Repository\refinery().
Referenced by adoptRequestParameters().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCtrlContext::getRedirectSource | ( | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 125 of file class.ilCtrlContext.php.
References $redirect.
| ilCtrlContext::getTargetScript | ( | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 194 of file class.ilCtrlContext.php.
References $target_script.
| ilCtrlContext::isAsync | ( | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 117 of file class.ilCtrlContext.php.
References $is_async.
| ilCtrlContext::setBaseClass | ( | string | $base_class | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 158 of file class.ilCtrlContext.php.
References $base_class, $path, and ilCtrlPathInterface\getCidPath().
Referenced by adoptRequestParameters().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCtrlContext::setCmd | ( | ?string | $cmd | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 228 of file class.ilCtrlContext.php.
References $cmd.
| ilCtrlContext::setCmdClass | ( | ?string | $cmd_class | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 202 of file class.ilCtrlContext.php.
References $cmd_class, $path, and ilCtrlPathInterface\getCidPath().
Referenced by adoptRequestParameters().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCtrlContext::setCmdMode | ( | string | $mode | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 141 of file class.ilCtrlContext.php.
| ilCtrlContext::setObjId | ( | int | $obj_id | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 263 of file class.ilCtrlContext.php.
References $obj_id.
| ilCtrlContext::setObjType | ( | string | $obj_type | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 246 of file class.ilCtrlContext.php.
References $obj_type.
| ilCtrlContext::setTargetScript | ( | string | $target_script | ) |
@inheritDoc
Implements ilCtrlContextInterface.
Definition at line 185 of file class.ilCtrlContext.php.
References $target_script.
|
protected |
Definition at line 75 of file class.ilCtrlContext.php.
Referenced by adoptRequestParameters(), getBaseClass(), getCmdClass(), and setBaseClass().
|
protected |
Definition at line 85 of file class.ilCtrlContext.php.
|
protected |
Definition at line 80 of file class.ilCtrlContext.php.
Referenced by adoptRequestParameters(), and setCmdClass().
|
protected |
Definition at line 65 of file class.ilCtrlContext.php.
Referenced by getCmdMode().
|
protected |
Definition at line 55 of file class.ilCtrlContext.php.
Referenced by isAsync().
|
protected |
Definition at line 95 of file class.ilCtrlContext.php.
Referenced by getObjId(), and setObjId().
|
protected |
Definition at line 90 of file class.ilCtrlContext.php.
Referenced by getObjType(), and setObjType().
|
protected |
Definition at line 50 of file class.ilCtrlContext.php.
Referenced by getPath(), setBaseClass(), and setCmdClass().
|
protected |
Definition at line 35 of file class.ilCtrlContext.php.
Referenced by __construct().
|
protected |
Definition at line 70 of file class.ilCtrlContext.php.
Referenced by getRedirectSource().
|
protected |
Definition at line 45 of file class.ilCtrlContext.php.
Referenced by __construct().
|
protected |
Definition at line 40 of file class.ilCtrlContext.php.
Referenced by __construct().
|
protected |
Definition at line 60 of file class.ilCtrlContext.php.
Referenced by getTargetScript(), and setTargetScript().