ILIAS
Release_5_0_x_branch Revision 61816
|
Tabs GUI. More...
Public Member Functions | |
ilTabsGUI () | |
Constructor public. | |
setSetupMode ($a_val) | |
Set setup mode. | |
getSetupMode () | |
Get setup mode. | |
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. | |
removeSubTab ($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 | |
getActiveTab () | |
hasTabs () |
Data Fields | |
$target_script | |
$obj_type | |
$tpl | |
$lng | |
$tabs | |
$objDefinition | |
$target = array() | |
$sub_target = array() | |
$non_tabbed_link = array() | |
$setup_mode = false |
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 397 of file class.ilTabsGUI.php.
References $cmd, $ilCtrl, $ilUser, $lng, $target, $tpl, ilTooltipGUI\addTooltip(), ilGlyphGUI\get(), ilPluginAdmin\getPluginObject(), getSetupMode(), ilHelpGUI\ID_PART_SCREEN, ilHelpGUI\ID_PART_SUB_SCREEN, IL_COMP_SERVICE, ilGlyphGUI\NEXT, ilGlyphGUI\NO_TEXT, and ilGlyphGUI\PREVIOUS.
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 345 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 314 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 385 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 276 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 248 of file class.ilTabsGUI.php.
Referenced by ilObjQuestionPoolGUI\addSettingsSubTabs().
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 131 of file class.ilTabsGUI.php.
Referenced by ilTestToplistGUI\manageTabs().
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 104 of file class.ilTabsGUI.php.
Referenced by assQuestionGUI\addTab_QuestionFeedback(), assQuestionGUI\addTab_QuestionHints(), assQuestionGUI\addTab_QuestionPreview(), and assQuestionGUI\addTab_SuggestedSolution().
ilTabsGUI::clearSubTabs | ( | ) |
Clear all already added sub tabs.
boolean |
Definition at line 355 of file class.ilTabsGUI.php.
ilTabsGUI::clearTargets | ( | ) |
clear all targets
Definition at line 210 of file class.ilTabsGUI.php.
References getSetupMode(), setSubTabActive(), and setTabActive().
Referenced by ilTestToplistGUI\manageTabs().
ilTabsGUI::getActiveTab | ( | ) |
Definition at line 600 of file class.ilTabsGUI.php.
References $target.
ilTabsGUI::getHTML | ( | $a_after_tabs_anchor = false | ) |
get tabs code as html
Definition at line 364 of file class.ilTabsGUI.php.
References __getHTML().
ilTabsGUI::getSetupMode | ( | ) |
Get setup mode.
Definition at line 61 of file class.ilTabsGUI.php.
References $setup_mode.
Referenced by __getHTML(), and clearTargets().
ilTabsGUI::getSubTabHTML | ( | ) |
get sub tabs code as html
Definition at line 372 of file class.ilTabsGUI.php.
References __getHTML().
ilTabsGUI::hasTabs | ( | ) |
Definition at line 607 of file class.ilTabsGUI.php.
References $target.
ilTabsGUI::ilTabsGUI | ( | ) |
Constructor public.
Definition at line 29 of file class.ilTabsGUI.php.
References $lng, $objDefinition, and $tpl.
ilTabsGUI::removeSubTab | ( | $a_id | ) |
Remove a tab identified by its id.
string | $a_id | Id of tab to remove |
Definition at line 164 of file class.ilTabsGUI.php.
References $sub_target.
ilTabsGUI::removeTab | ( | $a_id | ) |
Remove a tab identified by its id.
string | $a_id | Id of tab to remove |
Definition at line 144 of file class.ilTabsGUI.php.
References $target.
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 187 of file class.ilTabsGUI.php.
ilTabsGUI::setBack2Target | ( | $a_title, | |
$a_target, | |||
$a_frame = "" |
|||
) |
back target for tow level upper context
Definition at line 79 of file class.ilTabsGUI.php.
ilTabsGUI::setBackTarget | ( | $a_title, | |
$a_target, | |||
$a_frame = "" |
|||
) |
back target for upper context
Definition at line 69 of file class.ilTabsGUI.php.
Referenced by assQuestionGUI\addBackTab(), and ilTestToplistGUI\manageTabs().
ilTabsGUI::setSetupMode | ( | $a_val | ) |
Set setup mode.
boolean | $a_val | setup mode |
Definition at line 51 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 330 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 292 of file class.ilTabsGUI.php.
References $target.
Referenced by activateTab(), clearTargets(), and ilTestToplistGUI\manageTabs().
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::$setup_mode = false |
Definition at line 23 of file class.ilTabsGUI.php.
Referenced by getSetupMode().
ilTabsGUI::$sub_target = array() |
Definition at line 21 of file class.ilTabsGUI.php.
Referenced by removeSubTab().
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(), getActiveTab(), hasTabs(), removeTab(), and setTabActive().
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().