|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Tabs GUI. More...
Collaboration diagram for ilTabsGUI:Public Member Functions | |
| __construct () | |
| Constructor @access 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 @access 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 @access Private |
Definition at line 419 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| 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.
| 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.
Referenced by ilIndividualAssessmentSettingsGUI\getSubTabs().
Here is the caller graph for this function:| 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.
Referenced by ilObjQuestionPoolGUI\addSettingsSubTabs(), and ilMembershipGUI\setSubTabs().
Here is the caller graph for this function:| 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.
Referenced by ilMembershipGUI\addMemberTab(), and ilTestToplistGUI\manageTabs().
Here is the caller graph for this function:| 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.
Referenced by assQuestionGUI\addTab_QuestionFeedback(), assQuestionGUI\addTab_QuestionHints(), assQuestionGUI\addTab_QuestionPreview(), and assQuestionGUI\addTab_SuggestedSolution().
Here is the caller graph for this function:| ilTabsGUI::clearSubTabs | ( | ) |
Clear all already added sub tabs.
| boolean |
Definition at line 377 of file class.ilTabsGUI.php.
| ilTabsGUI::clearTargets | ( | ) |
clear all targets
Definition at line 231 of file class.ilTabsGUI.php.
References getSetupMode(), setSubTabActive(), and setTabActive().
Referenced by ilTestToplistGUI\manageTabs(), and ilIndividualAssessmentMemberGUI\setTabs().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTabsGUI::getActiveTab | ( | ) |
Definition at line 622 of file class.ilTabsGUI.php.
References $target.
| 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().
Here is the call graph for this function:| ilTabsGUI::getSetupMode | ( | ) |
Get setup mode.
Definition at line 63 of file class.ilTabsGUI.php.
References $setup_mode.
Referenced by __getHTML(), and clearTargets().
Here is the caller graph for this function:| ilTabsGUI::getSubTabHTML | ( | ) |
get sub tabs code as html
Definition at line 394 of file class.ilTabsGUI.php.
References __getHTML().
Here is the call graph for this function:| ilTabsGUI::hasTabs | ( | ) |
Definition at line 629 of file class.ilTabsGUI.php.
References $target.
| 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.
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 165 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 208 of file class.ilTabsGUI.php.
| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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.
References $target.
Referenced by activateTab(), clearTargets(), and ilTestToplistGUI\manageTabs().
Here is the caller graph for this function:
|
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.
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 __construct(), and __getHTML().