ILIAS
Release_3_10_x_branch Revision 61812
|
Public Member Functions | |
ilTabsGUI () | |
Constructor public. | |
setBackTarget ($a_title, $a_target, $a_frame="") | |
back target for upper context | |
setBack2Target ($a_title, $a_target, $a_frame="") | |
back target for tow level upper context | |
addTarget ($a_text, $a_link, $a_cmd="", $a_cmdClass="", $a_frame="", $a_activate=false, $a_dir_text=false) | |
Add a target to the tabbed menu. | |
clearTargets () | |
clear all targets | |
addSubTabTarget ($a_text, $a_link, $a_cmd="", $a_cmdClass="", $a_frame="", $a_activate=false, $a_dir_text=false) | |
Add a Subtarget to the tabbed menu. | |
setTabActive ($a_text) | |
Activate a specific tab identified by name This method overrides the definition in YOUR_OBJECT::getTabs() and deactivates all other tabs. | |
setSubTabActive ($a_text) | |
Activate a specific tab identified by name This method overrides the definition in YOUR_OBJECT::getTabs() and deactivates all other tabs. | |
clearSubTabs () | |
Clear all already added sub tabs. | |
getHTML () | |
get tabs code as html | |
getSubTabHTML () | |
get sub tabs code as html | |
__getHTML ($a_get_sub_tabs, $a_manual) | |
get tabs code as html |
Data Fields | |
$target_script | |
$obj_type | |
$tpl | |
$lng | |
$tabs | |
$objDefinition | |
$target = array() | |
$sub_target = array() |
Tabs GUI.
Definition at line 32 of file class.ilTabsGUI.php.
ilTabsGUI::__getHTML | ( | $a_get_sub_tabs, | |
$a_manual | |||
) |
get tabs code as html
bool | choose tabs or sub tabs |
bool | manual activation Private |
Definition at line 256 of file class.ilTabsGUI.php.
References $cmd, $ilCtrl, $lng, $target, and $tpl.
Referenced by getHTML(), and getSubTabHTML().
ilTabsGUI::addSubTabTarget | ( | $a_text, | |
$a_link, | |||
$a_cmd = "" , |
|||
$a_cmdClass = "" , |
|||
$a_frame = "" , |
|||
$a_activate = false , |
|||
$a_dir_text = false |
|||
) |
Add a Subtarget to the tabbed menu.
If no target has set $a_activate to true, ILIAS tries to determine the current activated menu item automatically using $a_cmd and $a_cmdClass. If one item is set activated (and only one should be activated) the automatism is disabled.
string | $a_text | menu item text |
string | $a_link | menu item link |
string | $a_cmd | command, used for auto activation |
string | $a_cmdClass | used for auto activation. String or array of cmd classes |
string | $a_frame | frame target |
boolean | $a_activate | activate this menu item |
boolean | $a_dir_text | text is direct text, no language variable |
Definition at line 160 of file class.ilTabsGUI.php.
ilTabsGUI::addTarget | ( | $a_text, | |
$a_link, | |||
$a_cmd = "" , |
|||
$a_cmdClass = "" , |
|||
$a_frame = "" , |
|||
$a_activate = false , |
|||
$a_dir_text = false |
|||
) |
Add a target to the tabbed menu.
If no target has set $a_activate to true, ILIAS tries to determine the current activated menu item automatically using $a_cmd and $a_cmdClass. If one item is set activated (and only one should be activated) the automatism is disabled.
string | $a_text | menu item text |
string | $a_link | menu item link |
string | $a_cmd | command, used for auto activation |
string | $a_cmdClass | used for auto activation. String or array of cmd classes |
string | $a_frame | frame target |
boolean | $a_activate | activate this menu item |
Definition at line 113 of file class.ilTabsGUI.php.
ilTabsGUI::clearSubTabs | ( | ) |
Clear all already added sub tabs.
boolean |
Definition at line 226 of file class.ilTabsGUI.php.
ilTabsGUI::clearTargets | ( | ) |
clear all targets
Definition at line 135 of file class.ilTabsGUI.php.
References setSubTabActive(), and setTabActive().
ilTabsGUI::getHTML | ( | ) |
get tabs code as html
Definition at line 235 of file class.ilTabsGUI.php.
References __getHTML().
ilTabsGUI::getSubTabHTML | ( | ) |
get sub tabs code as html
Definition at line 243 of file class.ilTabsGUI.php.
References __getHTML().
ilTabsGUI::ilTabsGUI | ( | ) |
Constructor public.
Definition at line 47 of file class.ilTabsGUI.php.
References $lng, $objDefinition, and $tpl.
ilTabsGUI::setBack2Target | ( | $a_title, | |
$a_target, | |||
$a_frame = "" |
|||
) |
back target for tow level upper context
Definition at line 77 of file class.ilTabsGUI.php.
ilTabsGUI::setBackTarget | ( | $a_title, | |
$a_target, | |||
$a_frame = "" |
|||
) |
back target for upper context
Definition at line 67 of file class.ilTabsGUI.php.
ilTabsGUI::setSubTabActive | ( | $a_text | ) |
Activate a specific tab identified by name This method overrides the definition in YOUR_OBJECT::getTabs() and deactivates all other tabs.
string | $a_text | menu item text |
boolean |
Definition at line 211 of file class.ilTabsGUI.php.
Referenced by clearTargets().
ilTabsGUI::setTabActive | ( | $a_text | ) |
Activate a specific tab identified by name This method overrides the definition in YOUR_OBJECT::getTabs() and deactivates all other tabs.
string | $a_text | menu item text |
boolean |
Definition at line 187 of file class.ilTabsGUI.php.
Referenced by clearTargets().
ilTabsGUI::$lng |
Definition at line 37 of file class.ilTabsGUI.php.
Referenced by __getHTML(), and ilTabsGUI().
ilTabsGUI::$obj_type |
Definition at line 35 of file class.ilTabsGUI.php.
ilTabsGUI::$objDefinition |
Definition at line 39 of file class.ilTabsGUI.php.
Referenced by ilTabsGUI().
ilTabsGUI::$sub_target = array() |
Definition at line 41 of file class.ilTabsGUI.php.
ilTabsGUI::$tabs |
Definition at line 38 of file class.ilTabsGUI.php.
ilTabsGUI::$target = array() |
Definition at line 40 of file class.ilTabsGUI.php.
Referenced by __getHTML().
ilTabsGUI::$target_script |
Definition at line 34 of file class.ilTabsGUI.php.
ilTabsGUI::$tpl |
Definition at line 36 of file class.ilTabsGUI.php.
Referenced by __getHTML(), and ilTabsGUI().