ILIAS
Release_4_0_x_branch Revision 61816
|
This class provides processing control methods. More...
Public Member Functions | |
getCurrentCidOfNode ($a_node) | |
Get last cid of node id. | |
removeLastCid ($a_node) | |
Remove last cid of node. | |
getParentCidOfNode ($a_node) | |
Get last but one cid of node id. | |
getNodeIdForTargetClass ($a_par_node, $a_class) | |
Searchs a node for a given class ($a_class) "near" the another node ($a_par_node). | |
getCallStructure ($a_class) | |
readClassInfo ($a_class) | |
Read info of class. | |
readNodeInfo ($a_node) | |
Read info of node. | |
readCidInfo ($a_cid) | |
Read information of class per cid. | |
getCidForClass ($a_class) | |
Get Cid for Class. | |
getClassForCid ($a_cid) | |
Get class for cid. | |
getPathNew ($a_source_node, $a_target_node) | |
Get path from node a to node b. | |
searchReturnClass ($a_class) | |
get current return class | |
& | 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. | |
getNextClass () | |
Get next class in the control path from the current class to the target command class. | |
getParameterArrayByClass ($a_class, $a_cmd="") | |
Public Member Functions inherited from ilCtrl | |
ilCtrl () | |
control class constructor | |
debug ($str) | |
getDebug () | |
init () | |
initialisation | |
callBaseClass () | |
Calls base class of current request. | |
getModuleDir () | |
get directory of current module | |
setContext ($a_obj_id, $a_obj_type, $a_sub_obj_id=0, $a_sub_obj_type="") | |
Set context of current user interface. | |
getContextObjId () | |
Get ContextObjId. | |
getContextObjType () | |
Get ContextObjType. | |
getContextSubObjId () | |
Get ContextSubObjId. | |
getContextSubObjType () | |
Get ContextSubObjType. | |
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, $a_nr=0, $a_parent=0) | |
Get call structure of class context. | |
storeCommonStructures () | |
stores often used common call structures (called from db_update script!!!) | |
readCallStructure ($a_class, $a_nr=0, $a_parent=0) | |
reads call structure from db | |
forwards ($a_from_class, $a_to_class) | |
Stores which classes forwards commands to which other classes. | |
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) | |
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. | |
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 responsible class for current command | |
getFormAction (&$a_gui_obj, $a_fallback_cmd="", $a_anchor="", $a_asynch=false) | |
get form action url for gui class object | |
getFormActionByClass ($a_class, $a_fallback_cmd="", $a_anchor="", $a_asynch=false) | |
get form action url for gui class name | |
appendRequestTokenParameterString ($a_url) | |
append request token as url parameter | |
getRequestToken () | |
Get request token. | |
verifyToken () | |
Verify Token. | |
redirect (&$a_gui_obj, $a_cmd="", $a_anchor="") | |
redirectByClass ($a_class, $a_cmd="") | |
redirect to other gui class | |
isAsynch () | |
getLinkTarget (&$a_gui_obj, $a_cmd="", $a_anchor="", $a_asynch=false) | |
get link target for (current) gui class | |
getLinkTargetByClass ($a_class, $a_cmd="", $a_anchor="", $a_asynch=false) | |
get link target for a target class | |
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) | |
getParentReturnByClass ($a_class) | |
getUrlParameters ($a_class, $a_str, $a_cmd="", $a_transits="") | |
appendTransitClasses ($a_str) | |
getTransitArray () | |
addTransit ($a_class) | |
getParameterArray (&$a_gui_obj, $a_cmd="", $a_incl_transit=true) | |
getParameterArrayByClass ($a_class, $a_cmd="", $a_transits="") |
Additional Inherited Members | |
Data Fields inherited from ilCtrl | |
const | IL_RTOKEN_NAME = 'rtoken' |
$target_script | |
$forward | |
$parent | |
$save_parameter | |
$return | |
$call_hist = array() | |
$debug = array() |
This class provides processing control methods.
A global instance is available via variable $ilCtrl
Definition at line 13 of file class.ilCtrl2.php.
& ilCtrl2::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 | $a_gui_object | gui object that should receive the flow of control public |
Reimplemented from ilCtrl.
Definition at line 339 of file class.ilCtrl2.php.
References exit, ilCtrl\getCmd(), and getNodeIdForTargetClass().
ilCtrl2::getCallStructure | ( | $a_class | ) |
Definition at line 116 of file class.ilCtrl2.php.
References readClassInfo().
ilCtrl2::getCidForClass | ( | $a_class | ) |
Get Cid for Class.
Definition at line 219 of file class.ilCtrl2.php.
References readClassInfo().
Referenced by getNodeIdForTargetClass().
ilCtrl2::getClassForCid | ( | $a_cid | ) |
Get class for cid.
Definition at line 241 of file class.ilCtrl2.php.
References readCidInfo().
Referenced by getNodeIdForTargetClass(), getParameterArrayByClass(), and searchReturnClass().
ilCtrl2::getCurrentCidOfNode | ( | $a_node | ) |
Get last cid of node id.
Definition at line 18 of file class.ilCtrl2.php.
Referenced by getNextClass(), getNodeIdForTargetClass(), and getParameterArrayByClass().
& ilCtrl2::getHTML | ( | & | $a_gui_object | ) |
Gets an HTML output from another GUI class and returns the flow of control to the calling class.
object | $a_gui_object | gui object that returns the HTML block public |
Reimplemented from ilCtrl.
Definition at line 377 of file class.ilCtrl2.php.
References exit, ilCtrl\getCmd(), and getNodeIdForTargetClass().
ilCtrl2::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.
Reimplemented from ilCtrl.
Definition at line 415 of file class.ilCtrl2.php.
References ilCtrl\getCmdNode(), getCurrentCidOfNode(), getPathNew(), and readCidInfo().
ilCtrl2::getNodeIdForTargetClass | ( | $a_par_node, | |
$a_class | |||
) |
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.
$a_par_node | id of starting node for the search |
$a_class | class that should be searched |
private
Reimplemented from ilCtrl.
Definition at line 42 of file class.ilCtrl2.php.
References exit, getCidForClass(), getClassForCid(), getCurrentCidOfNode(), getParentCidOfNode(), readClassInfo(), readNodeInfo(), and removeLastCid().
Referenced by forwardCommand(), getHTML(), getParameterArrayByClass(), and searchReturnClass().
ilCtrl2::getParameterArrayByClass | ( | $a_class, | |
$a_cmd = "" |
|||
) |
Definition at line 446 of file class.ilCtrl2.php.
References $_GET, $params, getClassForCid(), getCurrentCidOfNode(), getNodeIdForTargetClass(), and getPathNew().
ilCtrl2::getParentCidOfNode | ( | $a_node | ) |
Get last but one cid of node id.
Definition at line 36 of file class.ilCtrl2.php.
Referenced by getNodeIdForTargetClass().
ilCtrl2::getPathNew | ( | $a_source_node, | |
$a_target_node | |||
) |
Get path from node a to node b.
object | $a_source_node | |
object | $a_target_node |
Reimplemented from ilCtrl.
Definition at line 260 of file class.ilCtrl2.php.
References $cid, $diff, and exit.
Referenced by getNextClass(), and getParameterArrayByClass().
ilCtrl2::readCidInfo | ( | $a_cid | ) |
Read information of class per cid.
object | $a_cid | cid |
Definition at line 181 of file class.ilCtrl2.php.
References $ilDB.
Referenced by getClassForCid(), getNextClass(), and readNodeInfo().
ilCtrl2::readClassInfo | ( | $a_class | ) |
Read info of class.
object | $a_class | class name |
Definition at line 126 of file class.ilCtrl2.php.
References $ilDB.
Referenced by getCallStructure(), getCidForClass(), and getNodeIdForTargetClass().
ilCtrl2::readNodeInfo | ( | $a_node | ) |
Read info of node.
object | $a_class | class name |
Definition at line 167 of file class.ilCtrl2.php.
References $cid, and readCidInfo().
Referenced by getNodeIdForTargetClass().
ilCtrl2::removeLastCid | ( | $a_node | ) |
Remove last cid of node.
Definition at line 27 of file class.ilCtrl2.php.
Referenced by getNodeIdForTargetClass().
ilCtrl2::searchReturnClass | ( | $a_class | ) |
get current return class
Reimplemented from ilCtrl.
Definition at line 307 of file class.ilCtrl2.php.
References getClassForCid(), and getNodeIdForTargetClass().