ILIAS
Release_4_0_x_branch Revision 61816
|
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) | |
DEPRECATED. | |
addTab ($a_id, $a_text, $a_link, $a_frame="") | |
Add a Tab. | |
removeTab ($a_id) | |
Remove a tab identified by its id. | |
replaceTab ($a_old_id, $a_new_id, $a_text, $a_link, $a_frame= '') | |
Replace a tab. | |
clearTargets () | |
clear all targets | |
addSubTabTarget ($a_text, $a_link, $a_cmd="", $a_cmdClass="", $a_frame="", $a_activate=false, $a_dir_text=false) | |
DEPRECATED. | |
addSubTab ($a_id, $a_text, $a_link, $a_frame="") | |
Add a Subtab. | |
setTabActive ($a_id) | |
DEPRECATED. | |
activateTab ($a_id) | |
Activate a specific tab identified its id. | |
setSubTabActive ($a_text) | |
DEPRECATED. | |
activateSubTab ($a_id) | |
Activate a specific subtab identified its id. | |
clearSubTabs () | |
Clear all already added sub tabs. | |
getHTML ($a_after_tabs_anchor=false) | |
get tabs code as html | |
getSubTabHTML () | |
get sub tabs code as html | |
addNonTabbedLink ($a_id, $a_text, $a_link, $a_frame="") | |
Add a non-tabbed link (outside of tabs at same level) | |
__getHTML ($a_get_sub_tabs, $a_manual, $a_after_tabs_anchor=false) | |
get tabs code as html |
Data Fields | |
$target_script | |
$obj_type | |
$tpl | |
$lng | |
$tabs | |
$objDefinition | |
$target = array() | |
$sub_target = array() | |
$non_tabbed_link = array() |
Tabs GUI.
Definition at line 12 of file class.ilTabsGUI.php.
ilTabsGUI::__getHTML | ( | $a_get_sub_tabs, | |
$a_manual, | |||
$a_after_tabs_anchor = false |
|||
) |
get tabs code as html
bool | choose tabs or sub tabs |
bool | manual activation Private |
Definition at line 349 of file class.ilTabsGUI.php.
References $cmd, $ilCtrl, $lng, $target, and $tpl.
Referenced by getHTML(), and getSubTabHTML().
ilTabsGUI::activateSubTab | ( | $a_id | ) |
Activate a specific subtab identified its id.
string | $a_text | menu item text |
Definition at line 296 of file class.ilTabsGUI.php.
References setSubTabActive().
ilTabsGUI::activateTab | ( | $a_id | ) |
Activate a specific tab identified its id.
string | $a_text | menu item text |
Definition at line 265 of file class.ilTabsGUI.php.
References setTabActive().
ilTabsGUI::addNonTabbedLink | ( | $a_id, | |
$a_text, | |||
$a_link, | |||
$a_frame = "" |
|||
) |
Add a non-tabbed link (outside of tabs at same level)
string | id |
string | text (no lang var!) |
string | link |
string | frame target |
Definition at line 337 of file class.ilTabsGUI.php.
ilTabsGUI::addSubTab | ( | $a_id, | |
$a_text, | |||
$a_link, | |||
$a_frame = "" |
|||
) |
Add a Subtab.
string | id |
string | text (no lang var!) |
string | link |
string | frame target |
Definition at line 227 of file class.ilTabsGUI.php.
ilTabsGUI::addSubTabTarget | ( | $a_text, | |
$a_link, | |||
$a_cmd = "" , |
|||
$a_cmdClass = "" , |
|||
$a_frame = "" , |
|||
$a_activate = false , |
|||
$a_dir_text = false |
|||
) |
DEPRECATED.
Use addTab/addSubTab and activateTab/activateSubTab.
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 199 of file class.ilTabsGUI.php.
ilTabsGUI::addTab | ( | $a_id, | |
$a_text, | |||
$a_link, | |||
$a_frame = "" |
|||
) |
Add a Tab.
string | id |
string | text (no lang var!) |
string | link |
string | frame target |
Definition at line 110 of file class.ilTabsGUI.php.
ilTabsGUI::addTarget | ( | $a_text, | |
$a_link, | |||
$a_cmd = "" , |
|||
$a_cmdClass = "" , |
|||
$a_frame = "" , |
|||
$a_activate = false , |
|||
$a_dir_text = false |
|||
) |
DEPRECATED.
Use addTab/addSubTab and activateTab/activateSubTab.
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 83 of file class.ilTabsGUI.php.
ilTabsGUI::clearSubTabs | ( | ) |
Clear all already added sub tabs.
boolean |
Definition at line 306 of file class.ilTabsGUI.php.
ilTabsGUI::clearTargets | ( | ) |
clear all targets
Definition at line 170 of file class.ilTabsGUI.php.
References setSubTabActive(), and setTabActive().
ilTabsGUI::getHTML | ( | $a_after_tabs_anchor = false | ) |
get tabs code as html
Definition at line 315 of file class.ilTabsGUI.php.
References __getHTML().
ilTabsGUI::getSubTabHTML | ( | ) |
get sub tabs code as html
Definition at line 323 of file class.ilTabsGUI.php.
References __getHTML().
ilTabsGUI::ilTabsGUI | ( | ) |
Constructor public.
Definition at line 28 of file class.ilTabsGUI.php.
References $lng, $objDefinition, and $tpl.
ilTabsGUI::removeTab | ( | $a_id | ) |
Remove a tab identified by its id.
string | $a_id | Id of tab to remove |
Definition at line 123 of file class.ilTabsGUI.php.
ilTabsGUI::replaceTab | ( | $a_old_id, | |
$a_new_id, | |||
$a_text, | |||
$a_link, | |||
$a_frame = '' |
|||
) |
Replace a tab.
In contrast to a combination of removeTab and addTab, the position is kept.
string | $a_old_id | old id of tab |
string | $a_new_id | new id if tab |
string | $a_text | tab text |
string | $a_link | tab link |
string | $a_frame,[optional] | frame |
Definition at line 147 of file class.ilTabsGUI.php.
ilTabsGUI::setBack2Target | ( | $a_title, | |
$a_target, | |||
$a_frame = "" |
|||
) |
back target for tow level upper context
Definition at line 58 of file class.ilTabsGUI.php.
ilTabsGUI::setBackTarget | ( | $a_title, | |
$a_target, | |||
$a_frame = "" |
|||
) |
back target for upper context
Definition at line 48 of file class.ilTabsGUI.php.
ilTabsGUI::setSubTabActive | ( | $a_text | ) |
DEPRECATED.
Use addTab/addSubTab and activateTab/activateSubTab.
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 281 of file class.ilTabsGUI.php.
Referenced by activateSubTab(), and clearTargets().
ilTabsGUI::setTabActive | ( | $a_id | ) |
DEPRECATED.
Use addTab/addSubTab and activateTab/activateSubTab.
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 |
Definition at line 243 of file class.ilTabsGUI.php.
Referenced by activateTab(), and clearTargets().
ilTabsGUI::$lng |
Definition at line 17 of file class.ilTabsGUI.php.
Referenced by __getHTML(), and ilTabsGUI().
ilTabsGUI::$non_tabbed_link = array() |
Definition at line 22 of file class.ilTabsGUI.php.
ilTabsGUI::$obj_type |
Definition at line 15 of file class.ilTabsGUI.php.
ilTabsGUI::$objDefinition |
Definition at line 19 of file class.ilTabsGUI.php.
Referenced by ilTabsGUI().
ilTabsGUI::$sub_target = array() |
Definition at line 21 of file class.ilTabsGUI.php.
ilTabsGUI::$tabs |
Definition at line 18 of file class.ilTabsGUI.php.
ilTabsGUI::$target = array() |
Definition at line 20 of file class.ilTabsGUI.php.
Referenced by __getHTML().
ilTabsGUI::$target_script |
Definition at line 14 of file class.ilTabsGUI.php.
ilTabsGUI::$tpl |
Definition at line 16 of file class.ilTabsGUI.php.
Referenced by __getHTML(), and ilTabsGUI().