ILIAS
release_4-3 Revision
|
This class provides processing control methods. More...
Public Member Functions | |
ilCtrl () | |
control class constructor | |
debug ($str) | |
Collect debugging strings (. | |
getDebug () | |
Get debug message string (. | |
init () | |
initialisation | |
callBaseClass () | |
Calls base class of current request. | |
getModuleDir () | |
get directory of current module | |
& | 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. | |
& | getHTML (&$a_gui_object) |
Gets an HTML output from another GUI class and returns the flow of control to the calling class. | |
setContext ($a_obj_id, $a_obj_type, $a_sub_obj_id=0, $a_sub_obj_type="") | |
Set context of current user interface. | |
getContextObjId () | |
Get context object id. | |
getContextObjType () | |
Get context object type. | |
getContextSubObjId () | |
Get context subobject id. | |
getContextSubObjType () | |
Get context subobject type. | |
checkTargetClass ($a_class) | |
Check whether target is valid. | |
getCmdNode () | |
Get command target node. | |
addLocation ($a_title, $a_link, $a_target="", $a_ref_id=0) | |
Add a location to the locator array (. | |
getLocations () | |
Get locations array (. | |
addTab ($a_lang_var, $a_link, $a_cmd, $a_class) | |
Add a tab to tabs array (. | |
getTabs () | |
Get tabs array (. | |
getCallHistory () | |
Get controller call history. | |
getCallStructure ($a_class) | |
Get call structure of class context. | |
readCallStructure ($a_class, $a_nr=0, $a_parent=0) | |
stores often used common call structures (called from db_update script!!!) | |
saveParameter (&$a_obj, $a_parameter) | |
Set parameters that should be passed in every form and link of a gui class. | |
saveParameterByClass ($a_class, $a_parameter) | |
Save parameter for a class. | |
setParameter (&$a_obj, $a_parameter, $a_value) | |
Set parameters that should be passed a form and link of a gui class. | |
setParameterByClass ($a_class, $a_parameter, $a_value) | |
Same as setParameterByClass, except that a class name is passed. | |
clearParameters (&$a_obj) | |
Clears all parameters that have been set via setParameter for a GUI class. | |
clearParametersByClass ($a_class) | |
Clears all parameters that have been set via setParameter for a GUI class. | |
getNextClass () | |
Get next class in the control path from the current class to the target command class. | |
lookupClassPath ($a_class_name) | |
Get class path that can be used in include statements for a given class name. | |
getClassForClasspath ($a_class_path) | |
this method assumes that the class path has the format "dir/class.<class_name>.php" | |
setTargetScript ($a_target_script) | |
set target script name | |
getTargetScript () | |
Get target script name. | |
initBaseClass ($a_base_class) | |
Initialises new base class. | |
getCmd ($a_default_cmd="", $a_safe_commands="") | |
Determines current get/post command. | |
setCmd ($a_cmd) | |
Set the current command. | |
setCmdClass ($a_cmd_class) | |
Set the current command class. | |
getCmdClass () | |
Determines class that should execute the current command. | |
getFormAction (&$a_gui_obj, $a_fallback_cmd="", $a_anchor="", $a_asynch=false, $xml_style=true) | |
Get form action url for gui class object. | |
getFormActionByClass ($a_class, $a_fallback_cmd="", $a_anchor="", $a_asynch=false, $xml_style=true) | |
Get form action url for gui class name. | |
appendRequestTokenParameterString ($a_url, $xml_style=true) | |
Append request token as url parameter. | |
getRequestToken () | |
Get request token. | |
redirect (&$a_gui_obj, $a_cmd="", $a_anchor="", $a_asynch=false) | |
Redirect to another command. | |
redirectByClass ($a_class, $a_cmd="", $a_anchor="", $a_asynch=false) | |
Redirect to other gui class using class name. | |
isAsynch () | |
Is current command an asynchronous command? | |
getLinkTarget (&$a_gui_obj, $a_cmd="", $a_anchor="", $a_asynch=false, $xml_style=true) | |
Get link target for command using gui object. | |
getLinkTargetByClass ($a_class, $a_cmd="", $a_anchor="", $a_asynch=false, $xml_style=true) | |
Get link target for command using gui class name. | |
setReturn (&$a_gui_obj, $a_cmd) | |
Set return command. | |
setReturnByClass ($a_class, $a_cmd) | |
Set return command. | |
returnToParent (&$a_gui_obj, $a_anchor="") | |
Redirects to next parent class that used setReturn. | |
getRedirectSource () | |
Get current redirect source. | |
getParentReturn (&$a_gui_obj) | |
Get return script url. | |
getParentReturnByClass ($a_class) | |
Get return script url. | |
getReturnClass ($a_class) | |
Get return class. | |
getUrlParameters ($a_class, $a_str, $a_cmd="", $xml_style=false) | |
Get URL parameters for a class and append them to a string. | |
getParameterArray (&$a_gui_obj, $a_cmd="") | |
Get all set/save parameters for a gui object. | |
getParameterArrayByClass ($a_class, $a_cmd="") | |
Get all set/save parameters using gui class name. | |
insertCtrlCalls ($a_parent, $a_child, $a_comp_prefix) | |
Insert ctrl calls record. |
Data Fields | |
const | IL_RTOKEN_NAME = 'rtoken' |
$target_script | |
$forward | |
$parent | |
$save_parameter | |
$return | |
$call_hist = array() | |
$debug = array() | |
$calls = array() | |
$rtoken = false |
Private Member Functions | |
getNodeIdForTargetClass ($a_par_node, $a_class, $a_check=false) | |
Searchs a node for a given class ($a_class) "near" the another node ($a_par_node). | |
forwards ($a_from_class, $a_to_class) | |
Stores which classes forwards commands to which other classes. | |
getPathNew ($a_source_node, $a_target_node) | |
Get path in call structure. | |
verifyToken () | |
Verify Token. | |
searchReturnClass ($a_class) | |
Determine current return class. | |
getCidForClass ($a_class, $a_check=false) | |
Get Cid for Class. | |
getClassForCid ($a_cid) | |
Get class for cid. | |
readCidInfo ($a_cid) | |
Read information of class per cid. | |
readNodeInfo ($a_node) | |
Read info of node. | |
readClassInfo ($a_class) | |
Read info of class. | |
getParentCidOfNode ($a_node) | |
Get last but one cid of node id. | |
removeLastCid ($a_node) | |
Remove last cid of node. | |
getCurrentCidOfNode ($a_node) | |
Get last cid of node id. |
This class provides processing control methods.
A global instance is available via variable $ilCtrl
Definition at line 11 of file class.ilCtrl.php.
ilCtrl::addLocation | ( | $a_title, | |
$a_link, | |||
$a_target = "" , |
|||
$a_ref_id = 0 |
|||
) |
Add a location to the locator array (.
string | $a_title | link text |
string | $a_link | link |
string | $a_target | target frame |
Definition at line 467 of file class.ilCtrl.php.
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 491 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 1121 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 91 of file class.ilCtrl.php.
References $_GET, forwardCommand(), and getCallStructure().
ilCtrl::checkTargetClass | ( | $a_class | ) |
Check whether target is valid.
@return |
Definition at line 423 of file class.ilCtrl.php.
References getCidForClass(), and getNodeIdForTargetClass().
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 742 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 753 of file class.ilCtrl.php.
Referenced by clearParameters().
ilCtrl::debug | ( | $str | ) |
Collect debugging strings (.
string | debug message |
Definition at line 49 of file class.ilCtrl.php.
& 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 162 of file class.ilCtrl.php.
References getCmd(), and getNodeIdForTargetClass().
Referenced by callBaseClass().
|
private |
Stores which classes forwards commands to which other classes.
string | $a_from_class | source class name |
string | $a_to_class | target class name |
Definition at line 607 of file class.ilCtrl.php.
Referenced by init(), and readCallStructure().
ilCtrl::getCallHistory | ( | ) |
Get controller call history.
This is used for the developer mode and presented in the footer
Definition at line 515 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->setTargetScript("ilias.php"); $ilCtrl->getCallStructure("ilrepositorygui"); $repository_gui =& new ilRepositoryGUI(); $ilCtrl->forwardCommand($repository_gui);
string | $a_class | gui class name |
public
Definition at line 536 of file class.ilCtrl.php.
References readClassInfo().
Referenced by callBaseClass(), and getNodeIdForTargetClass().
|
private |
Get Cid for Class.
Definition at line 1623 of file class.ilCtrl.php.
References readClassInfo().
Referenced by checkTargetClass(), and getNodeIdForTargetClass().
|
private |
Get class for cid.
Definition at line 1650 of file class.ilCtrl.php.
References readCidInfo().
Referenced by 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 827 of file class.ilCtrl.php.
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 938 of file class.ilCtrl.php.
References $_GET, $_POST, $cmd, and verifyToken().
Referenced by forwardCommand(), and getHTML().
ilCtrl::getCmdClass | ( | ) |
Determines class that should execute the current command.
Definition at line 1052 of file class.ilCtrl.php.
References $_GET.
ilCtrl::getCmdNode | ( | ) |
Get command target node.
Definition at line 455 of file class.ilCtrl.php.
References $_GET.
Referenced by getNextClass().
ilCtrl::getContextObjId | ( | ) |
Get context object id.
Definition at line 255 of file class.ilCtrl.php.
ilCtrl::getContextObjType | ( | ) |
Get context object type.
Definition at line 265 of file class.ilCtrl.php.
ilCtrl::getContextSubObjId | ( | ) |
Get context subobject id.
Definition at line 275 of file class.ilCtrl.php.
ilCtrl::getContextSubObjType | ( | ) |
Get context subobject type.
Definition at line 285 of file class.ilCtrl.php.
|
private |
Get last cid of node id.
Definition at line 1780 of file class.ilCtrl.php.
Referenced by getNextClass(), getNodeIdForTargetClass(), and getParameterArrayByClass().
ilCtrl::getDebug | ( | ) |
Get debug message string (.
Definition at line 59 of file class.ilCtrl.php.
References $debug.
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 1067 of file class.ilCtrl.php.
References getFormActionByClass().
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 1085 of file class.ilCtrl.php.
References ilUtil\appendUrlParameterString(), getLinkTargetByClass(), and getRequestToken().
Referenced by getFormAction().
& ilCtrl::getHTML | ( | & | $a_gui_object | ) |
Gets an HTML output from another GUI class and returns the flow of control to the calling class.
object | gui object that returns the HTML block |
Definition at line 200 of file class.ilCtrl.php.
References 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 1333 of file class.ilCtrl.php.
References getLinkTargetByClass().
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 1353 of file class.ilCtrl.php.
References getTargetScript(), and getUrlParameters().
Referenced by getFormActionByClass(), getLinkTarget(), redirect(), and redirectByClass().
ilCtrl::getLocations | ( | ) |
Get locations array (.
Definition at line 478 of file class.ilCtrl.php.
References $location.
ilCtrl::getModuleDir | ( | ) |
get directory of current module
Definition at line 148 of file class.ilCtrl.php.
ilCtrl::getNextClass | ( | ) |
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 766 of file class.ilCtrl.php.
References $path, getCmdNode(), getCurrentCidOfNode(), getPathNew(), and readCidInfo().
|
private |
Searchs a node for a given class ($a_class) "near" the 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 wether 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 methode searchs 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 308 of file class.ilCtrl.php.
References getCallStructure(), getCidForClass(), getClassForCid(), getCurrentCidOfNode(), getParentCidOfNode(), readClassInfo(), readNodeInfo(), and removeLastCid().
Referenced by 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 1529 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 1543 of file class.ilCtrl.php.
References $_GET, $_POST, $path, getClassForCid(), getCurrentCidOfNode(), getNodeIdForTargetClass(), and getPathNew().
Referenced by getParameterArray(), and getUrlParameters().
|
private |
Get last but one cid of node id.
Definition at line 1762 of file class.ilCtrl.php.
Referenced by getNodeIdForTargetClass().
ilCtrl::getParentReturn | ( | & | $a_gui_obj | ) |
Get return script url.
Definition at line 1443 of file class.ilCtrl.php.
References getParentReturnByClass().
Referenced by returnToParent().
ilCtrl::getParentReturnByClass | ( | $a_class | ) |
Get return script url.
Definition at line 1452 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 842 of file class.ilCtrl.php.
References $failure, $GLOBALS, $path, and redirect().
Referenced by getNextClass(), and getParameterArrayByClass().
ilCtrl::getRedirectSource | ( | ) |
Get current redirect source.
Definition at line 1435 of file class.ilCtrl.php.
References $_GET.
ilCtrl::getRequestToken | ( | ) |
Get request token.
Definition at line 1132 of file class.ilCtrl.php.
References $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.
@return |
Definition at line 1470 of file class.ilCtrl.php.
References searchReturnClass().
ilCtrl::getTabs | ( | ) |
Get tabs array (.
Definition at line 504 of file class.ilCtrl.php.
References $tab.
ilCtrl::getTargetScript | ( | ) |
Get target script name.
Definition at line 908 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 1508 of file class.ilCtrl.php.
References ilUtil\appendUrlParameterString(), and getParameterArrayByClass().
Referenced by getLinkTargetByClass(), setReturn(), and setReturnByClass().
ilCtrl::ilCtrl | ( | ) |
control class constructor
Definition at line 28 of file class.ilCtrl.php.
References $ilBench, and init().
ilCtrl::init | ( | ) |
initialisation
Definition at line 67 of file class.ilCtrl.php.
References forwards().
Referenced by ilCtrl(), and initBaseClass().
ilCtrl::initBaseClass | ( | $a_base_class | ) |
Initialises new base class.
Note: this resets the whole current ilCtrl context completely. You can call setTargetScript() and callBaseClass() after that.
string | base class name |
Definition at line 922 of file class.ilCtrl.php.
ilCtrl::insertCtrlCalls | ( | $a_parent, | |
$a_child, | |||
$a_comp_prefix | |||
) |
Insert ctrl calls record.
@return |
Definition at line 1792 of file class.ilCtrl.php.
ilCtrl::isAsynch | ( | ) |
Is current command an asynchronous command?
Definition at line 1309 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 800 of file class.ilCtrl.php.
ilCtrl::readCallStructure | ( | $a_class, | |
$a_nr = 0 , |
|||
$a_parent = 0 |
|||
) |
stores often used common call structures (called from db_update script!!!)
Reads call structure from db
Definition at line 569 of file class.ilCtrl.php.
References forwards().
|
private |
Read information of class per cid.
object | $a_cid | cid |
Definition at line 1669 of file class.ilCtrl.php.
Referenced by getClassForCid(), getNextClass(), and readNodeInfo().
|
private |
Read info of class.
object | $a_class | class name |
Definition at line 1723 of file class.ilCtrl.php.
Referenced by getCallStructure(), getCidForClass(), and getNodeIdForTargetClass().
|
private |
Read info of node.
object | $a_class | class name |
Definition at line 1709 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 1270 of file class.ilCtrl.php.
References $ilBench, and getLinkTargetByClass().
Referenced by getPathNew(), redirectByClass(), and returnToParent().
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 1294 of file class.ilCtrl.php.
References getLinkTargetByClass(), and redirect().
|
private |
Remove last cid of node.
Definition at line 1771 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 1413 of file class.ilCtrl.php.
References $_GET, ilUtil\appendUrlParameterString(), getParentReturn(), and redirect().
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 (which is set by the setTargetScript() method) 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 665 of file class.ilCtrl.php.
References saveParameterByClass().
ilCtrl::saveParameterByClass | ( | $a_class, | |
$a_parameter | |||
) |
Save parameter for a class.
string | class name |
string | parameter name |
Definition at line 679 of file class.ilCtrl.php.
Referenced by saveParameter().
|
private |
Determine current return class.
Definition at line 1487 of file class.ilCtrl.php.
References 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 1023 of file class.ilCtrl.php.
References $_GET.
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 1038 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 242 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 (which is set by the setTargetScript() method) 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 717 of file class.ilCtrl.php.
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 730 of file class.ilCtrl.php.
ilCtrl::setReturn | ( | & | $a_gui_obj, |
$a_cmd | |||
) |
Set return command.
Definition at line 1388 of file class.ilCtrl.php.
References getTargetScript(), and getUrlParameters().
ilCtrl::setReturnByClass | ( | $a_class, | |
$a_cmd | |||
) |
Set return command.
Definition at line 1399 of file class.ilCtrl.php.
References getTargetScript(), and getUrlParameters().
ilCtrl::setTargetScript | ( | $a_target_script | ) |
set target script name
string | $a_target_script | target script name |
Definition at line 897 of file class.ilCtrl.php.
|
private |
Verify Token.
Definition at line 1191 of file class.ilCtrl.php.
References $_GET, $_SESSION, and $ilUser.
Referenced by getCmd().
ilCtrl::$call_hist = array() |
Definition at line 20 of file class.ilCtrl.php.
Referenced by getCallHistory().
ilCtrl::$calls = array() |
Definition at line 22 of file class.ilCtrl.php.
ilCtrl::$debug = array() |
Definition at line 21 of file class.ilCtrl.php.
Referenced by getDebug().
ilCtrl::$forward |
Definition at line 16 of file class.ilCtrl.php.
ilCtrl::$parent |
Definition at line 17 of file class.ilCtrl.php.
ilCtrl::$return |
Definition at line 19 of file class.ilCtrl.php.
ilCtrl::$rtoken = false |
Definition at line 23 of file class.ilCtrl.php.
Referenced by getRequestToken().
ilCtrl::$save_parameter |
Definition at line 18 of file class.ilCtrl.php.
ilCtrl::$target_script |
Definition at line 15 of file class.ilCtrl.php.
Referenced by getTargetScript().
const ilCtrl::IL_RTOKEN_NAME = 'rtoken' |
Definition at line 13 of file class.ilCtrl.php.
Referenced by ilObjFileBasedLMGUI\addBibItem(), ilObjContentObjectGUI\addBibItem(), ilObjFileBasedLMGUI\deleteBibItem(), ilObjContentObjectGUI\deleteBibItem(), ilObjFileBasedLMGUI\editBibItem(), ilObjContentObjectGUI\editBibItem(), ilObjFileBasedLMGUI\saveBibItem(), and ilObjContentObjectGUI\saveBibItem().