ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
This class provides processing control methods. More...
Public Member Functions | |
__construct () | |
control class constructor More... | |
callBaseClass () | |
Calls base class of current request. More... | |
getModuleDir () | |
get directory of current module More... | |
forwardCommand ($a_gui_object) | |
Forward flow of control to next gui class this invokes the executeCommand() method of the gui object that is passed via reference. More... | |
getHTML ($a_gui_object, array $a_parameters=null) | |
Gets an HTML output from another GUI class and returns the flow of control to the calling class. More... | |
setContext ($a_obj_id, $a_obj_type, $a_sub_obj_id=0, $a_sub_obj_type="") | |
Set context of current user interface. More... | |
getContextObjId () | |
Get context object id. More... | |
getContextObjType () | |
Get context object type. More... | |
getContextSubObjId () | |
Get context subobject id. More... | |
getContextSubObjType () | |
Get context subobject type. More... | |
checkTargetClass ($a_class) | |
Check whether target is valid. More... | |
getCmdNode () | |
Get command target node. More... | |
addTab ($a_lang_var, $a_link, $a_cmd, $a_class) | |
Add a tab to tabs array (. More... | |
getTabs () | |
Get tabs array (. More... | |
getCallHistory () | |
Get controller call history. More... | |
getCallStructure ($a_class) | |
Get call structure of class context. More... | |
readCallStructure ($a_class, $a_nr=0, $a_parent=0) | |
Reads call structure from db. More... | |
saveParameter ($a_obj, $a_parameter) | |
Set parameters that should be passed in every form and link of a gui class. More... | |
saveParameterByClass ($a_class, $a_parameter) | |
Save parameter for a class. More... | |
setParameter ($a_obj, $a_parameter, $a_value) | |
Set parameters that should be passed a form and link of a gui class. More... | |
setParameterByClass ($a_class, $a_parameter, $a_value) | |
Same as setParameterByClass, except that a class name is passed. More... | |
clearParameterByClass ($a_class, $a_parameter) | |
Same as setParameterByClass, except that a class name is passed. More... | |
clearParameters ($a_obj) | |
Clears all parameters that have been set via setParameter for a GUI class. More... | |
clearParametersByClass ($a_class) | |
Clears all parameters that have been set via setParameter for a GUI class. More... | |
getNextClass ($a_gui_class=null) | |
Get next class in the control path from the current class to the target command class. More... | |
lookupClassPath ($a_class_name) | |
Get class path that can be used in include statements for a given class name. More... | |
getClassForClasspath ($a_class_path) | |
this method assumes that the class path has the format "dir/class.<class_name>.php" More... | |
setTargetScript (string $a_target_script) | |
set target script name More... | |
getTargetScript () | |
Get target script name. More... | |
initBaseClass ($a_base_class) | |
Initialises new base class. More... | |
getCmd ($a_default_cmd="", $a_safe_commands="") | |
Determines current get/post command. More... | |
setCmd ($a_cmd) | |
Set the current command. More... | |
setCmdClass ($a_cmd_class) | |
Set the current command class. More... | |
getCmdClass () | |
Determines class that should execute the current command. More... | |
getFormAction ( $a_gui_obj, $a_fallback_cmd="", $a_anchor="", $a_asynch=false, $xml_style=true) | |
Get form action url for gui class object. More... | |
getFormActionByClass ( $a_class, $a_fallback_cmd="", $a_anchor="", $a_asynch=false, $xml_style=true) | |
Get form action url for gui class name. More... | |
appendRequestTokenParameterString ($a_url, $xml_style=true) | |
Append request token as url parameter. More... | |
getRequestToken () | |
Get request token. More... | |
redirect ($a_gui_obj, $a_cmd="", $a_anchor="", $a_asynch=false) | |
Redirect to another command. More... | |
redirectToURL ($a_script) | |
redirectByClass ($a_class, $a_cmd="", $a_anchor="", $a_asynch=false) | |
Redirect to other gui class using class name. More... | |
isAsynch () | |
Is current command an asynchronous command? More... | |
getLinkTarget ( $a_gui_obj, $a_cmd="", $a_anchor="", $a_asynch=false, $xml_style=true) | |
Get link target for command using gui object. More... | |
getLinkTargetByClass ( $a_class, $a_cmd="", $a_anchor="", $a_asynch=false, $xml_style=true) | |
Get link target for command using gui class name. More... | |
setReturn ($a_gui_obj, $a_cmd) | |
Set return command. More... | |
setReturnByClass ($a_class, $a_cmd) | |
Set return command. More... | |
returnToParent ($a_gui_obj, $a_anchor="") | |
Redirects to next parent class that used setReturn. More... | |
getParentReturn ($a_gui_obj) | |
Get return script url. More... | |
getReturnClass ($a_class) | |
Get return class. More... | |
getRedirectSource () | |
Get current redirect source. More... | |
getUrlParameters ($a_class, $a_str, $a_cmd="", $xml_style=false) | |
Get URL parameters for a class and append them to a string. More... | |
getParameterArray ($a_gui_obj, $a_cmd="") | |
Get all set/save parameters for a gui object. More... | |
getParameterArrayByClass ($a_class, $a_cmd="") | |
Get all set/save parameters using gui class name. More... | |
insertCtrlCalls ($a_parent, $a_child, $a_comp_prefix) | |
Insert ctrl calls record. More... | |
checkCurrentPathForClass ($gui_class) | |
Check if current path contains a certain gui class. More... | |
Data Fields | |
const | IL_RTOKEN_NAME = 'rtoken' |
Protected Member Functions | |
initializeMemberVariables () | |
Initialize member variables. More... | |
checkLPSettingsForward ($a_gui_obj, $a_cmd_node) | |
getParentReturnByClass ($a_class) | |
Get return script url. More... | |
Protected Attributes | |
$db | |
$plugin_admin | |
$save_parameter | |
$parameter | |
$return | |
$call_hist = array() | |
Stores the order in which different GUI classes were called. More... | |
$calls = array() | |
Stores which class calls which other class. More... | |
$rtoken = false | |
$target_script = "ilias.php" | |
Private Member Functions | |
getNodeIdForTargetClass ($a_par_node, $a_class, $a_check=false) | |
Searches a node for a given class ($a_class) "near" another node ($a_par_node). More... | |
getPathNew ($a_source_node, $a_target_node) | |
Get path in call structure. More... | |
verifyToken () | |
Verify Token. More... | |
searchReturnClass ($a_class) | |
Determine current return class. More... | |
classCidUnknown ($a_class) | |
getCidForClass ($a_class, $a_check=false) | |
Get class id for class after fetching and storing corresponding information, if necessary. More... | |
cidClassUnknown ($a_cid) | |
getClassForCid ($a_cid) | |
Get class for class id after fetching and storing corresponding information, if necessary. More... | |
fetchCallsOfClassFromCache ($a_class, ilCachedCtrl $a_cached_ctrl) | |
readCidInfo ($a_cid) | |
Save class respective to $a_cid and store corresponding class calls for future reference. More... | |
readNodeInfo ($a_node) | |
Save classes respective to the class id's of a node and store corresponding class calls for future reference. More... | |
readClassInfo ($a_class) | |
Save class id respective to $a_class and store corresponding class calls for future reference. More... | |
callOfClassNotKnown ($a_class, $a_child) | |
updateClassCidMap ($a_class, $a_cid) | |
getParentCidOfNode ($a_node) | |
Get 2nd to last class id of node. More... | |
removeLastCid ($a_node) | |
Remove the class id that comes at the beginning the sequence. More... | |
getCurrentCidOfNode ($a_node) | |
Get cid of node. More... | |
This class provides processing control methods.
A global instance is available via variable $ilCtrl
Definition at line 12 of file class.ilCtrl.php.
ilCtrl::__construct | ( | ) |
control class constructor
Definition at line 94 of file class.ilCtrl.php.
References initializeMemberVariables().
ilCtrl::addTab | ( | $a_lang_var, | |
$a_link, | |||
$a_cmd, | |||
$a_class | |||
) |
Add a tab to tabs array (.
string | $a_lang_var | language variable |
string | $a_link | link |
string | $a_cmd | command (must be same as in link) |
string | $a_class | command class (must be same as in link) |
Definition at line 473 of file class.ilCtrl.php.
ilCtrl::appendRequestTokenParameterString | ( | $a_url, | |
$xml_style = true |
|||
) |
Append request token as url parameter.
string | url |
boolean | xml style |
Definition at line 1073 of file class.ilCtrl.php.
References ilUtil\appendUrlParameterString(), and getRequestToken().
ilCtrl::callBaseClass | ( | ) |
Calls base class of current request.
The base class is passed via $_GET["baseClass"] and is the first class in the call sequence of the request. Do not call this method within other scripts than ilias.php.
Definition at line 130 of file class.ilCtrl.php.
References $_GET, $_SERVER, $DIC, $ilDB, $module, forwardCommand(), getCallStructure(), ilComponent\getComponentInfo(), and ilCachedCtrl\getInstance().
|
private |
Definition at line 1724 of file class.ilCtrl.php.
Referenced by fetchCallsOfClassFromCache().
ilCtrl::checkCurrentPathForClass | ( | $gui_class | ) |
Check if current path contains a certain gui class.
$gui_class |
ilCtrlException |
Definition at line 1805 of file class.ilCtrl.php.
References getClassForCid(), and getCmdNode().
|
protected |
Definition at line 671 of file class.ilCtrl.php.
References $_GET, $DIC, $GLOBALS, $type, ilObject\_lookupObjectId(), ilObjSAHSLearningModule\_lookupSubType(), ilObject\_lookupType(), getNodeIdForTargetClass(), ilObjectLP\isSupportedObjectType(), redirectByClass(), and setParameterByClass().
Referenced by getNextClass().
ilCtrl::checkTargetClass | ( | $a_class | ) |
Check whether target is valid.
Definition at line 432 of file class.ilCtrl.php.
References getCidForClass(), and getNodeIdForTargetClass().
|
private |
Definition at line 1631 of file class.ilCtrl.php.
Referenced by getClassForCid().
|
private |
Definition at line 1603 of file class.ilCtrl.php.
Referenced by getCidForClass().
ilCtrl::clearParameterByClass | ( | $a_class, | |
$a_parameter | |||
) |
Same as setParameterByClass, except that a class name is passed.
string | $a_class | gui class name |
string | $a_parameter | parameter name |
string | $a_parameter | parameter value |
Definition at line 644 of file class.ilCtrl.php.
ilCtrl::clearParameters | ( | $a_obj | ) |
Clears all parameters that have been set via setParameter for a GUI class.
object | $a_obj | gui object |
Definition at line 655 of file class.ilCtrl.php.
References clearParametersByClass().
ilCtrl::clearParametersByClass | ( | $a_class | ) |
Clears all parameters that have been set via setParameter for a GUI class.
string | $a_class | gui class name |
Definition at line 666 of file class.ilCtrl.php.
Referenced by clearParameters().
|
private |
Definition at line 1652 of file class.ilCtrl.php.
References callOfClassNotKnown(), and ilCachedCtrl\lookupCall().
Referenced by readCidInfo(), and readClassInfo().
ilCtrl::forwardCommand | ( | $a_gui_object | ) |
Forward flow of control to next gui class this invokes the executeCommand() method of the gui object that is passed via reference.
object | gui object that should receive the flow of control |
Definition at line 195 of file class.ilCtrl.php.
References $html, getCmd(), and getNodeIdForTargetClass().
Referenced by callBaseClass(), ilLTIRouterGUI\executeCommand(), ilObjectPermissionStatusGUI\executeCommand(), and ilChatroomInfoGUI\executeDefault().
ilCtrl::getCallHistory | ( | ) |
Get controller call history.
This is used for the developer mode and presented in the footer
Definition at line 498 of file class.ilCtrl.php.
References $call_hist.
ilCtrl::getCallStructure | ( | $a_class | ) |
Get call structure of class context.
This method must be called for the top level gui class in the leading php script. It must be called before the the current command is forwarded to the top level gui class. Example:
include_once "classes/class.ilRepositoryGUI.php"; $ilCtrl->getCallStructure("ilrepositorygui"); $repository_gui = new ilRepositoryGUI(); $ilCtrl->forwardCommand($repository_gui);
string | $a_class | gui class name |
public
Definition at line 518 of file class.ilCtrl.php.
References readClassInfo().
Referenced by callBaseClass(), and getNodeIdForTargetClass().
|
private |
Get class id for class after fetching and storing corresponding information, if necessary.
Definition at line 1611 of file class.ilCtrl.php.
References classCidUnknown(), and readClassInfo().
Referenced by checkTargetClass(), and getNodeIdForTargetClass().
|
private |
Get class for class id after fetching and storing corresponding information, if necessary.
Definition at line 1640 of file class.ilCtrl.php.
References cidClassUnknown(), and readCidInfo().
Referenced by checkCurrentPathForClass(), getNodeIdForTargetClass(), getParameterArrayByClass(), and searchReturnClass().
ilCtrl::getClassForClasspath | ( | $a_class_path | ) |
this method assumes that the class path has the format "dir/class.<class_name>.php"
string | $a_class_path | class path public |
Definition at line 798 of file class.ilCtrl.php.
References $path.
ilCtrl::getCmd | ( | $a_default_cmd = "" , |
|
$a_safe_commands = "" |
|||
) |
Determines current get/post command.
string | default command |
array | safe commands: for these commands no token is checked for post requests |
Definition at line 896 of file class.ilCtrl.php.
References $_GET, $_POST, and verifyToken().
Referenced by ilTestSignatureGUI\executeCommand(), ilObjectPermissionStatusGUI\executeCommand(), ilObjWorkflowEngineGUI\executeCommand(), forwardCommand(), and getHTML().
ilCtrl::getCmdClass | ( | ) |
Determines class that should execute the current command.
Definition at line 992 of file class.ilCtrl.php.
References $_GET.
ilCtrl::getCmdNode | ( | ) |
Get command target node.
Definition at line 460 of file class.ilCtrl.php.
References $_GET.
Referenced by checkCurrentPathForClass(), and getNextClass().
ilCtrl::getContextObjId | ( | ) |
ilCtrl::getContextObjType | ( | ) |
ilCtrl::getContextSubObjId | ( | ) |
ilCtrl::getContextSubObjType | ( | ) |
Get context subobject type.
Definition at line 318 of file class.ilCtrl.php.
|
private |
Get cid of node.
Definition at line 1758 of file class.ilCtrl.php.
Referenced by getNextClass(), getNodeIdForTargetClass(), and getParameterArrayByClass().
ilCtrl::getFormAction | ( | $a_gui_obj, | |
$a_fallback_cmd = "" , |
|||
$a_anchor = "" , |
|||
$a_asynch = false , |
|||
$xml_style = true |
|||
) |
Get form action url for gui class object.
object | gui object |
string | fallback command |
string | anchor |
bool | asynchronous call |
bool | xml style t/f |
Definition at line 1007 of file class.ilCtrl.php.
References getFormActionByClass().
Referenced by ilWorkflowEngineDefinitionsTableGUI\__construct(), ilTestSkillLevelThresholdsTableGUI\__construct(), ilObjectPermissionStatusGUI\accessStatusInfo(), ilObjectPermissionStatusGUI\addToolbar(), ilChatroomHistoryGUI\byDay(), ilChatroomHistoryGUI\bySession(), ilChatroomAdminViewGUI\clientsettings(), ilChatroomAdminSmileyGUI\deleteMultipleObject(), ilChatroomSettingsGUI\general(), ilChatroomAdminSmileyGUI\initSmiliesEditForm(), ilChatroomAdminSmileyGUI\initSmiliesForm(), ilHistoryTableGUI\initTable(), ilChatroomAdminViewGUI\serversettings(), ilChatroomAdminSmileyGUI\showDeleteSmileyFormObject(), and ilChatroomViewGUI\showNameSelection().
ilCtrl::getFormActionByClass | ( | $a_class, | |
$a_fallback_cmd = "" , |
|||
$a_anchor = "" , |
|||
$a_asynch = false , |
|||
$xml_style = true |
|||
) |
Get form action url for gui class name.
string | gui class name |
string | fallback command |
string | anchor |
bool | asynchronous call |
bool | xml style t/f |
Definition at line 1034 of file class.ilCtrl.php.
References ilUtil\appendUrlParameterString(), getLinkTargetByClass(), and getRequestToken().
Referenced by getFormAction().
ilCtrl::getHTML | ( | $a_gui_object, | |
array | $a_parameters = null |
||
) |
Gets an HTML output from another GUI class and returns the flow of control to the calling class.
object | $a_gui_object | GUI class that implements getHTML() method to return its HTML |
array | null | $a_parameters | parameter array |
ilCtrlException |
Definition at line 231 of file class.ilCtrl.php.
References $html, getCmd(), and getNodeIdForTargetClass().
ilCtrl::getLinkTarget | ( | $a_gui_obj, | |
$a_cmd = "" , |
|||
$a_anchor = "" , |
|||
$a_asynch = false , |
|||
$xml_style = true |
|||
) |
Get link target for command using gui object.
object | gui object (usually $this) |
string | command |
string | # anchor |
boolean | asynchronous mode |
boolean | xml style t/f |
Definition at line 1334 of file class.ilCtrl.php.
References getLinkTargetByClass().
Referenced by ilWorkflowEngineDefinitionsTableGUI\fillRow(), ilObjWorkflowEngineGUI\initLocator(), ilObjWorkflowEngineGUI\prepareAdminOutput(), and ilChatroomViewGUI\showRoom().
ilCtrl::getLinkTargetByClass | ( | $a_class, | |
$a_cmd = "" , |
|||
$a_anchor = "" , |
|||
$a_asynch = false , |
|||
$xml_style = true |
|||
) |
Get link target for command using gui class name.
string/array | command target class |
string | command |
string | # anchor |
boolean | asynchronous mode |
boolean | xml style t/f |
Definition at line 1363 of file class.ilCtrl.php.
References getTargetScript(), and getUrlParameters().
Referenced by ilObjectPermissionStatusGUI\addToolbar(), ilHistoryTableGUI\fillRow(), getFormActionByClass(), getLinkTarget(), ilObjWorkflowEngineGUI\prepareAdminOutput(), redirect(), redirectByClass(), and ilChatroomViewGUI\showRoom().
ilCtrl::getModuleDir | ( | ) |
get directory of current module
Definition at line 181 of file class.ilCtrl.php.
ilCtrl::getNextClass | ( | $a_gui_class = null | ) |
Get next class in the control path from the current class to the target command class.
This is the class that should be instantiated and be invoked via $ilCtrl->forwardCommand($class) next.
Definition at line 750 of file class.ilCtrl.php.
References $path, checkLPSettingsForward(), getCmdNode(), getCurrentCidOfNode(), getPathNew(), and readCidInfo().
Referenced by ilLTIRouterGUI\executeCommand(), ilTestSignatureGUI\executeCommand(), ilObjectPermissionStatusGUI\executeCommand(), and ilObjWorkflowEngineGUI\executeCommand().
|
private |
Searches a node for a given class ($a_class) "near" another node ($a_par_node).
It first looks if the given class is a child class of the current node. If such a child node has been found, its id is returned.
If not, this method determines, whether the given class is a sibling of the current node within the call structure. If this is the case, then the corresponding id is returned.
At last the method searches for the given class along the path from the current node to the root class of the call structure.
string | id of starting node for the search |
string | class that should be searched |
Definition at line 341 of file class.ilCtrl.php.
References Monolog\Handler\error_log(), getCallStructure(), getCidForClass(), getClassForCid(), getCurrentCidOfNode(), ilCachedCtrl\getInstance(), getParentCidOfNode(), readClassInfo(), readNodeInfo(), and removeLastCid().
Referenced by checkLPSettingsForward(), checkTargetClass(), forwardCommand(), getHTML(), getParameterArrayByClass(), searchReturnClass(), and setCmdClass().
ilCtrl::getParameterArray | ( | $a_gui_obj, | |
$a_cmd = "" |
|||
) |
Get all set/save parameters for a gui object.
Definition at line 1527 of file class.ilCtrl.php.
References getParameterArrayByClass().
ilCtrl::getParameterArrayByClass | ( | $a_class, | |
$a_cmd = "" |
|||
) |
Get all set/save parameters using gui class name.
string | class name |
string | cmd $ |
Definition at line 1541 of file class.ilCtrl.php.
References $_GET, $_POST, PHPMailer\PHPMailer\$params, $path, getClassForCid(), getCurrentCidOfNode(), getNodeIdForTargetClass(), getPathNew(), and ilUtil\stripSlashesRecursive().
Referenced by getParameterArray(), and getUrlParameters().
|
private |
Get 2nd to last class id of node.
Definition at line 1740 of file class.ilCtrl.php.
Referenced by getNodeIdForTargetClass().
ilCtrl::getParentReturn | ( | $a_gui_obj | ) |
Get return script url.
Used in conjunction with ilTabs->setBackTarget and ilBlockGUI->addHeaderCommand.
Definition at line 1440 of file class.ilCtrl.php.
References getParentReturnByClass().
Referenced by returnToParent().
|
protected |
Get return script url.
Only used in getParentReturn.
Definition at line 1451 of file class.ilCtrl.php.
References searchReturnClass().
Referenced by getParentReturn().
|
private |
Get path in call structure.
string | $a_source_node | source node id |
string | $a_source_node | target node id |
Definition at line 813 of file class.ilCtrl.php.
References $failure, $GLOBALS, $path, and redirectToURL().
Referenced by getNextClass(), and getParameterArrayByClass().
ilCtrl::getRedirectSource | ( | ) |
Get current redirect source.
Definition at line 1503 of file class.ilCtrl.php.
References $_GET.
ilCtrl::getRequestToken | ( | ) |
Get request token.
Definition at line 1087 of file class.ilCtrl.php.
References $DIC, $ilDB, $ilUser, $res, $rtoken, IL_CAL_DATETIME, IL_CAL_DAY, IL_CAL_HOUR, and IL_CAL_UNIX.
Referenced by appendRequestTokenParameterString(), and getFormActionByClass().
ilCtrl::getReturnClass | ( | $a_class | ) |
Get return class.
Only used in COPage/ilPCParagraphGUI and COPage/ilPCPlaceHolderGUI
string | object | $class |
Definition at line 1468 of file class.ilCtrl.php.
References searchReturnClass().
ilCtrl::getTabs | ( | ) |
Get tabs array (.
Definition at line 486 of file class.ilCtrl.php.
References $tab.
ilCtrl::getTargetScript | ( | ) |
Get target script name.
Definition at line 866 of file class.ilCtrl.php.
References $target_script.
Referenced by getLinkTargetByClass(), setReturn(), and setReturnByClass().
ilCtrl::getUrlParameters | ( | $a_class, | |
$a_str, | |||
$a_cmd = "" , |
|||
$xml_style = false |
|||
) |
Get URL parameters for a class and append them to a string.
Definition at line 1511 of file class.ilCtrl.php.
References PHPMailer\PHPMailer\$params, ilUtil\appendUrlParameterString(), and getParameterArrayByClass().
Referenced by getLinkTargetByClass(), setReturn(), and setReturnByClass().
ilCtrl::initBaseClass | ( | $a_base_class | ) |
Initialises new base class.
Note: this resets the whole current ilCtrl context completely. You can call callBaseClass() after that.
string | base class name |
Definition at line 880 of file class.ilCtrl.php.
References $_GET, and initializeMemberVariables().
|
protected |
Initialize member variables.
This is used in __construct and initBaseClass.
Definition at line 111 of file class.ilCtrl.php.
Referenced by __construct(), and initBaseClass().
ilCtrl::insertCtrlCalls | ( | $a_parent, | |
$a_child, | |||
$a_comp_prefix | |||
) |
ilCtrl::isAsynch | ( | ) |
Is current command an asynchronous command?
Definition at line 1313 of file class.ilCtrl.php.
References $_GET.
ilCtrl::lookupClassPath | ( | $a_class_name | ) |
Get class path that can be used in include statements for a given class name.
string | $a_class_name | class name |
Definition at line 776 of file class.ilCtrl.php.
References ilCachedCtrl\getInstance().
Referenced by ilLTIRouterGUI\executeCommand().
ilCtrl::readCallStructure | ( | $a_class, | |
$a_nr = 0 , |
|||
$a_parent = 0 |
|||
) |
Reads call structure from db.
Definition at line 526 of file class.ilCtrl.php.
|
private |
Save class respective to $a_cid and store corresponding class calls for future reference.
object | $a_cid | cid |
Definition at line 1667 of file class.ilCtrl.php.
References fetchCallsOfClassFromCache(), ilCachedCtrl\getInstance(), and updateClassCidMap().
Referenced by getClassForCid(), getNextClass(), and readNodeInfo().
|
private |
Save class id respective to $a_class and store corresponding class calls for future reference.
object | $a_class | class name |
Definition at line 1705 of file class.ilCtrl.php.
References fetchCallsOfClassFromCache(), ilCachedCtrl\getInstance(), and updateClassCidMap().
Referenced by getCallStructure(), getCidForClass(), and getNodeIdForTargetClass().
|
private |
Save classes respective to the class id's of a node and store corresponding class calls for future reference.
string | $a_node |
Definition at line 1691 of file class.ilCtrl.php.
References readCidInfo().
Referenced by getNodeIdForTargetClass().
ilCtrl::redirect | ( | $a_gui_obj, | |
$a_cmd = "" , |
|||
$a_anchor = "" , |
|||
$a_asynch = false |
|||
) |
Redirect to another command.
object | gui object |
string | command |
string | anchor |
Definition at line 1217 of file class.ilCtrl.php.
References getLinkTargetByClass(), and redirectToURL().
Referenced by ilChatroomAdminSmileyGUI\confirmedDeleteMultipleObject(), ilChatroomBanGUI\delete(), ilChatroomAdminSmileyGUI\deleteMultipleObject(), ilChatroomAdminSmileyGUI\deleteSmileyObject(), ilChatroomAdminViewGUI\executeDefault(), ilChatroomViewGUI\executeDefault(), ilChatroomViewGUI\invitePD(), ilChatroomCreateGUI\save(), ilChatroomAdminViewGUI\saveClientSettings(), ilChatroomSettingsGUI\saveGeneral(), and ilChatroomAdminViewGUI\saveSettings().
ilCtrl::redirectByClass | ( | $a_class, | |
$a_cmd = "" , |
|||
$a_anchor = "" , |
|||
$a_asynch = false |
|||
) |
Redirect to other gui class using class name.
string | command target class |
string | command |
Definition at line 1299 of file class.ilCtrl.php.
References getLinkTargetByClass(), and redirectToURL().
Referenced by checkLPSettingsForward(), ilChatroomSettingsGUI\general(), ilChatroomViewGUI\logout(), ilChatroomViewGUI\lostConnection(), ilChatroomGUIHandler\redirectIfNoPermission(), ilChatroomViewGUI\showRoom(), and ilChatroomKickGUI\sub().
ilCtrl::redirectToURL | ( | $a_script | ) |
$a_script |
Definition at line 1236 of file class.ilCtrl.php.
References $_SERVER, $DIC, $http, GuzzleHttp\Psr7\$stream, exit, ilPluginAdmin\getPluginObject(), IL_COMP_SERVICE, ilUIHookPluginGUI\KEEP, and ILIAS\Filesystem\Stream\Streams\ofString().
Referenced by getPathNew(), redirect(), redirectByClass(), and returnToParent().
|
private |
Remove the class id that comes at the beginning the sequence.
Definition at line 1749 of file class.ilCtrl.php.
Referenced by getNodeIdForTargetClass().
ilCtrl::returnToParent | ( | $a_gui_obj, | |
$a_anchor = "" |
|||
) |
Redirects to next parent class that used setReturn.
Definition at line 1415 of file class.ilCtrl.php.
References $_GET, ilUtil\appendUrlParameterString(), getParentReturn(), and redirectToURL().
ilCtrl::saveParameter | ( | $a_obj, | |
$a_parameter | |||
) |
Set parameters that should be passed in every form and link of a gui class.
All links that relate to the specified gui object class and are build e.g. by using getLinkTarger() or getFormAction() will include this parameter. This is the mechanism to add url parameters to the standard url target everytime.
A typical example is the "ref_id" that should be included in almost every link or form action url. So the constructor of ilRepositoryGUI includes the command:
$this->ctrl->saveParameter($this, array("ref_id"));
object | $a_obj | gui object that will process the parameter |
mixed | $a_parameter | parameter name (string) or array of parameter names |
public
Definition at line 572 of file class.ilCtrl.php.
References saveParameterByClass().
Referenced by ilChatroomAdminSmileyGUI\initSmiliesEditForm(), and ilChatroomViewGUI\showNameSelection().
ilCtrl::saveParameterByClass | ( | $a_class, | |
$a_parameter | |||
) |
Save parameter for a class.
string | class name |
string | parameter name |
Definition at line 585 of file class.ilCtrl.php.
References $parameter.
Referenced by saveParameter().
|
private |
Determine current return class.
Definition at line 1482 of file class.ilCtrl.php.
References $i, getClassForCid(), and getNodeIdForTargetClass().
Referenced by getParentReturnByClass(), and getReturnClass().
ilCtrl::setCmd | ( | $a_cmd | ) |
Set the current command.
IMPORTANT NOTE:
please use this function only in exceptional cases it is not intended for setting commands in forms or links! use the corresponding parameters of getFormAction() and getLinkTarget() instead.
Definition at line 963 of file class.ilCtrl.php.
References $_GET.
Referenced by ilChatroomInfoGUI\executeDefault().
ilCtrl::setCmdClass | ( | $a_cmd_class | ) |
Set the current command class.
IMPORTANT NOTE:
please use this function only in exceptional cases it is not intended for setting the command class in forms or links! use the corresponding parameters of getFormAction() and getLinkTarget() instead.
Definition at line 978 of file class.ilCtrl.php.
References $_GET, and getNodeIdForTargetClass().
ilCtrl::setContext | ( | $a_obj_id, | |
$a_obj_type, | |||
$a_sub_obj_id = 0 , |
|||
$a_sub_obj_type = "" |
|||
) |
Set context of current user interface.
A context is a ILIAS repository object (obj ID + obj type) with an additional optional subobject (ID + Type)
integer | object ID |
string | object type |
integer | subobject ID |
string | subobject type |
Definition at line 275 of file class.ilCtrl.php.
ilCtrl::setParameter | ( | $a_obj, | |
$a_parameter, | |||
$a_value | |||
) |
Set parameters that should be passed a form and link of a gui class.
All links that relate to the specified gui object class and are build e.g. by using getLinkTarger() or getFormAction() will include this parameter. This is the mechanism to add url parameters to the standard url target. The difference to the saveParameter() method is, that setParameter() does not simply forward the url parameter of the last request. You can set a spefific value.
If this parameter is also a "saved parameter" (set by saveParameter() method) the saved value will be overwritten.
The method is usually used in conjunction with a getFormAction() or getLinkTarget() call. E.g.:
$this->ctrl->setParameter($this, "obj_id", $data_row["obj_id"]); $obj_link = $this->ctrl->getLinkTarget($this, "view");
object | $a_obj | gui object |
string | $a_parameter | parameter name |
string | $a_parameter | parameter value |
Definition at line 619 of file class.ilCtrl.php.
Referenced by ilWorkflowEngineDefinitionsTableGUI\fillRow(), ilObjWorkflowEngineGUI\initLocator(), ilChatroomViewGUI\invitePD(), and ilChatroomCreateGUI\save().
ilCtrl::setParameterByClass | ( | $a_class, | |
$a_parameter, | |||
$a_value | |||
) |
Same as setParameterByClass, except that a class name is passed.
string | $a_class | gui class name |
string | $a_parameter | parameter name |
string | $a_parameter | parameter value |
Definition at line 632 of file class.ilCtrl.php.
Referenced by checkLPSettingsForward(), ilHistoryTableGUI\fillRow(), ilChatroomSettingsGUI\general(), ilChatroomViewGUI\logout(), ilChatroomGUIHandler\redirectIfNoPermission(), and ilChatroomKickGUI\sub().
ilCtrl::setReturn | ( | $a_gui_obj, | |
$a_cmd | |||
) |
Set return command.
Definition at line 1392 of file class.ilCtrl.php.
References getTargetScript(), and getUrlParameters().
Referenced by ilObjectPermissionStatusGUI\executeCommand().
ilCtrl::setReturnByClass | ( | $a_class, | |
$a_cmd | |||
) |
Set return command.
Definition at line 1402 of file class.ilCtrl.php.
References getTargetScript(), and getUrlParameters().
ilCtrl::setTargetScript | ( | string | $a_target_script | ) |
set target script name
string | $a_target_script | target script name |
Definition at line 855 of file class.ilCtrl.php.
|
private |
Definition at line 1731 of file class.ilCtrl.php.
Referenced by readCidInfo(), and readClassInfo().
|
private |
Verify Token.
Definition at line 1143 of file class.ilCtrl.php.
References $_GET, $_SESSION, $DIC, $ilDB, $ilUser, $time, IL_CAL_DATETIME, IL_CAL_DAY, IL_CAL_HOUR, and IL_CAL_UNIX.
Referenced by getCmd().
|
protected |
Stores the order in which different GUI classes were called.
TODO: Might better be called call_stack.
This is used in: forwardCommand, getHTML, getCallHistory
Definition at line 67 of file class.ilCtrl.php.
Referenced by getCallHistory().
|
protected |
Stores which class calls which other class.
This is used in: getNodeIdForTargetClass, fetchCallsOfClassFromCache, callOfClassNotKnown
Definition at line 74 of file class.ilCtrl.php.
|
protected |
Definition at line 17 of file class.ilCtrl.php.
|
protected |
Definition at line 47 of file class.ilCtrl.php.
Referenced by saveParameterByClass().
|
protected |
Definition at line 23 of file class.ilCtrl.php.
|
protected |
Definition at line 58 of file class.ilCtrl.php.
|
protected |
Definition at line 83 of file class.ilCtrl.php.
Referenced by getRequestToken().
|
protected |
Definition at line 36 of file class.ilCtrl.php.
|
protected |
Definition at line 89 of file class.ilCtrl.php.
Referenced by getTargetScript().
const ilCtrl::IL_RTOKEN_NAME = 'rtoken' |
Definition at line 25 of file class.ilCtrl.php.