ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Tabs GUI. More...
Public Member Functions | |
__construct () | |
Constructor public. More... | |
setSetupMode ($a_val) | |
Set setup mode. More... | |
getSetupMode () | |
Get setup mode. More... | |
setBackTarget ($a_title, $a_target, $a_frame="") | |
back target for upper context More... | |
setBack2Target ($a_title, $a_target, $a_frame="") | |
back target for tow level upper context More... | |
setForcePresentationOfSingleTab ($a_val) | |
Set force presentation of single tab. More... | |
getForcePresentationOfSingleTab () | |
Get force presentation of single tab. More... | |
addTarget ($a_text, $a_link, $a_cmd="", $a_cmdClass="", $a_frame="", $a_activate=false, $a_dir_text=false) | |
addTab ($a_id, $a_text, $a_link, $a_frame="") | |
Add a Tab. More... | |
removeTab ($a_id) | |
Remove a tab identified by its id. More... | |
removeSubTab ($a_id) | |
Remove a tab identified by its id. More... | |
replaceTab ($a_old_id, $a_new_id, $a_text, $a_link, $a_frame='') | |
Replace a tab. More... | |
clearTargets () | |
clear all targets More... | |
addSubTabTarget ($a_text, $a_link, $a_cmd="", $a_cmdClass="", $a_frame="", $a_activate=false, $a_dir_text=false) | |
DEPRECATED. More... | |
addSubTab ($a_id, $a_text, $a_link, $a_frame="") | |
Add a Subtab. More... | |
setTabActive ($a_id) | |
DEPRECATED. More... | |
activateTab ($a_id) | |
Activate a specific tab identified its id. More... | |
setSubTabActive ($a_text) | |
DEPRECATED. More... | |
activateSubTab ($a_id) | |
Activate a specific subtab identified its id. More... | |
clearSubTabs () | |
Clear all already added sub tabs. More... | |
getHTML ($a_after_tabs_anchor=false) | |
get tabs code as html More... | |
getSubTabHTML () | |
get sub tabs code as html More... | |
addNonTabbedLink ($a_id, $a_text, $a_link, $a_frame="") | |
Add a non-tabbed link (outside of tabs at same level) More... | |
__getHTML ($a_get_sub_tabs, $a_manual, $a_after_tabs_anchor=false) | |
get tabs code as html More... | |
getActiveTab () | |
hasTabs () | |
Data Fields | |
$target_script | |
$obj_type | |
$tpl | |
$lng | |
$tabs | |
$objDefinition | |
$target = array() | |
$sub_target = array() | |
$non_tabbed_link = array() | |
$setup_mode = false | |
Protected Attributes | |
$force_one_tab = false | |
ilTabsGUI::__construct | ( | ) |
Constructor public.
Definition at line 31 of file class.ilTabsGUI.php.
References $lng, $objDefinition, and $tpl.
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 419 of file class.ilTabsGUI.php.
References $cmd, $ilCtrl, $ilUser, $lng, $target, ilTooltipGUI\addTooltip(), array, 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 367 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 336 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 407 of file class.ilTabsGUI.php.
References array.
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 297 of file class.ilTabsGUI.php.
References array.
Referenced by ilChatroomTabGUIFactory\convertLowerCamelCaseToUnderscoreCaseConversion(), and ilIndividualAssessmentSettingsGUI\getSubTabs().
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 269 of file class.ilTabsGUI.php.
References array.
Referenced by ilObjQuestionPoolGUI\addSettingsSubTabs(), and ilMembershipGUI\setSubTabs().
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 152 of file class.ilTabsGUI.php.
References array.
Referenced by ilMembershipGUI\addMemberTab(), ilChatroomTabGUIFactory\convertLowerCamelCaseToUnderscoreCaseConversion(), and ilTestToplistGUI\manageTabs().
ilTabsGUI::addTarget | ( | $a_text, | |
$a_link, | |||
$a_cmd = "" , |
|||
$a_cmdClass = "" , |
|||
$a_frame = "" , |
|||
$a_activate = false , |
|||
$a_dir_text = false |
|||
) |
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 125 of file class.ilTabsGUI.php.
References array.
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 377 of file class.ilTabsGUI.php.
References array.
ilTabsGUI::clearTargets | ( | ) |
clear all targets
Definition at line 231 of file class.ilTabsGUI.php.
References array, getSetupMode(), setSubTabActive(), and setTabActive().
Referenced by ilTestToplistGUI\manageTabs(), and ilIndividualAssessmentMemberGUI\setTabs().
ilTabsGUI::getActiveTab | ( | ) |
Definition at line 622 of file class.ilTabsGUI.php.
ilTabsGUI::getForcePresentationOfSingleTab | ( | ) |
Get force presentation of single tab.
Definition at line 103 of file class.ilTabsGUI.php.
References $force_one_tab.
ilTabsGUI::getHTML | ( | $a_after_tabs_anchor = false | ) |
get tabs code as html
Definition at line 386 of file class.ilTabsGUI.php.
References __getHTML().
ilTabsGUI::getSetupMode | ( | ) |
Get setup mode.
Definition at line 63 of file class.ilTabsGUI.php.
References $setup_mode.
Referenced by __getHTML(), and clearTargets().
ilTabsGUI::getSubTabHTML | ( | ) |
get sub tabs code as html
Definition at line 394 of file class.ilTabsGUI.php.
References __getHTML().
ilTabsGUI::hasTabs | ( | ) |
ilTabsGUI::removeSubTab | ( | $a_id | ) |
Remove a tab identified by its id.
string | $a_id | Id of tab to remove |
Definition at line 185 of file class.ilTabsGUI.php.
ilTabsGUI::removeTab | ( | $a_id | ) |
Remove a tab identified by its id.
string | $a_id | Id of tab to remove |
Definition at line 165 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 208 of file class.ilTabsGUI.php.
References array.
ilTabsGUI::setBack2Target | ( | $a_title, | |
$a_target, | |||
$a_frame = "" |
|||
) |
back target for tow level upper context
Definition at line 81 of file class.ilTabsGUI.php.
ilTabsGUI::setBackTarget | ( | $a_title, | |
$a_target, | |||
$a_frame = "" |
|||
) |
back target for upper context
Definition at line 71 of file class.ilTabsGUI.php.
Referenced by assQuestionGUI\addBackTab(), ilTestToplistGUI\manageTabs(), and ilIndividualAssessmentMemberGUI\setTabs().
ilTabsGUI::setForcePresentationOfSingleTab | ( | $a_val | ) |
Set force presentation of single tab.
bool | $a_val | force presentation of single tab |
Definition at line 93 of file class.ilTabsGUI.php.
ilTabsGUI::setSetupMode | ( | $a_val | ) |
Set setup mode.
boolean | $a_val | setup mode |
Definition at line 53 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 352 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 314 of file class.ilTabsGUI.php.
Referenced by activateTab(), clearTargets(), and ilTestToplistGUI\manageTabs().
|
protected |
Definition at line 25 of file class.ilTabsGUI.php.
Referenced by getForcePresentationOfSingleTab().
ilTabsGUI::$lng |
Definition at line 17 of file class.ilTabsGUI.php.
Referenced by __construct(), and __getHTML().
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 __construct().
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.
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(), and hasTabs().
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 __construct().