|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Handles display of the main menu. More...
Inheritance diagram for ilMainMenuGUI:
Collaboration diagram for ilMainMenuGUI:Public Member Functions | |
| __construct ($a_target="_top", $a_use_start_template=false, ilTemplate $a_main_tpl=null) | |
| setMode ($a_value) | |
| getMode () | |
| setTopBarBack ($a_url, $a_caption=null) | |
| getSpacerClass () | |
| setActive ($a_active) | |
| setLoginTargetPar ($a_val) | |
| Set target parameter for login (public sector). More... | |
| getLoginTargetPar () | |
| Get target parameter for login. More... | |
| setTemplateVars () | |
| set all template variables (images, scripts, target frames, ...) More... | |
| renderStatusBox ($a_tpl) | |
| Render status box. More... | |
| renderMainMenuListEntries ($a_tpl, $a_call_get=true) | |
| desc More... | |
| renderEntry ($a_tpl, $a_id, $a_txt, $a_script, $a_target="_top") | |
| Render main menu entry. More... | |
| getScriptTarget ($a_script) | |
| generates complete script target (private) More... | |
| getHTML () | |
| renderDropDown ($a_tpl, $a_id) | |
| GetDropDownHTML. More... | |
| renderHelpButtons () | |
| Render help button. More... | |
| renderAwareness () | |
| Render awareness tool. More... | |
| showLogoOnly ($a_value) | |
| Toggle rendering of main menu, search, user info. More... | |
Static Public Member Functions | |
| static | getLanguageSelection ($a_in_topbar=false) |
| static | _checkAdministrationPermission () |
Data Fields | |
| $tpl | |
| $target | |
| $start_template | |
| const | MODE_FULL = 1 |
| const | MODE_TOPBAR_ONLY = 2 |
| const | MODE_TOPBAR_REDUCED = 3 |
| const | MODE_TOPBAR_MEMBERVIEW = 4 |
Protected Member Functions | |
| initMemberView () | |
| Init member view @global type $lng. More... | |
| populateWithBuddySystem () | |
| Includes all buddy system/user connections related javascript code. More... | |
| populateWithOnScreenChat () | |
| renderOnScreenChatMenu () | |
| renderOnScreenNotifications (\ilObjUser $user, \ilTemplate $mainTpl, \ilLanguage $lng) | |
| getHeaderURL () | |
| renderBackgroundTasks () | |
Protected Attributes | |
| $rbacsystem | |
| $user | |
| $lng | |
| $plugin_admin | |
| $tree | |
| $access | |
| $nav_history | |
| $settings | |
| $ctrl | |
| $help | |
| $main_tpl | |
| $mode | |
| $topbar_back_url | |
| $topbar_back_caption | |
Handles display of the main menu.
Definition at line 17 of file class.ilMainMenuGUI.php.
| ilMainMenuGUI::__construct | ( | $a_target = "_top", |
|
$a_use_start_template = false, |
|||
| ilTemplate | $a_main_tpl = null |
||
| ) |
| string | $a_target | target frame |
| boolean | $a_use_start_template | true means: target scripts should be called through start template |
Definition at line 97 of file class.ilMainMenuGUI.php.
References $DIC, $ilUser, $rbacsystem, ilMemberViewSettings\getInstance(), ilMailGlobalServices\getMailObjectRefId(), initMemberView(), Monolog\Handler\mail(), setMode(), settings(), and user().
Here is the call graph for this function:
|
static |
Definition at line 884 of file class.ilMainMenuGUI.php.
References $DIC, and $rbacsystem.
Referenced by ilObjMediaPoolGUI\createMediaFromUploadDir(), ilObjMediaPoolGUI\listMedia(), renderMainMenuListEntries(), and ilObjMediaPoolGUI\selectUploadDirFiles().
Here is the caller graph for this function:
|
protected |
Definition at line 1292 of file class.ilMainMenuGUI.php.
References $url, and ilUserUtil\getStartingPointAsUrl().
Referenced by setTemplateVars().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMainMenuGUI::getHTML | ( | ) |
Definition at line 897 of file class.ilMainMenuGUI.php.
References setTemplateVars().
Here is the call graph for this function:
|
static |
Definition at line 201 of file class.ilMainMenuGUI.php.
References $_SERVER, $base, $DIC, $lng, and ilUtil\appendUrlParameterString().
Referenced by ilStartUpGUI\getLanguageSelection(), and setTemplateVars().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMainMenuGUI::getLoginTargetPar | ( | ) |
Get target parameter for login.
Definition at line 196 of file class.ilMainMenuGUI.php.
Referenced by setTemplateVars().
Here is the caller graph for this function:| ilMainMenuGUI::getMode | ( | ) |
Definition at line 152 of file class.ilMainMenuGUI.php.
References $mode.
Referenced by getSpacerClass(), renderHelpButtons(), renderOnScreenNotifications(), and setTemplateVars().
Here is the caller graph for this function:| ilMainMenuGUI::getScriptTarget | ( | $a_script | ) |
generates complete script target (private)
Definition at line 875 of file class.ilMainMenuGUI.php.
References defined.
| ilMainMenuGUI::getSpacerClass | ( | ) |
Reimplemented in LTI\ilMainMenuGUI.
Definition at line 163 of file class.ilMainMenuGUI.php.
References getMode(), MODE_FULL, MODE_TOPBAR_MEMBERVIEW, MODE_TOPBAR_ONLY, and MODE_TOPBAR_REDUCED.
Here is the call graph for this function:
|
protected |
Init member view @global type $lng.
Definition at line 915 of file class.ilMainMenuGUI.php.
References $lng, $url, ilLink\_getLink(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilMemberViewSettings\getInstance(), setMode(), and setTopBarBack().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Includes all buddy system/user connections related javascript code.
Definition at line 1228 of file class.ilMainMenuGUI.php.
References ilBuddySystem\getInstance(), and ilBuddySystemGUI\initializeFrontend().
Referenced by setTemplateVars().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1237 of file class.ilMainMenuGUI.php.
References ilOnScreenChatGUI\initializeFrontend().
Referenced by setTemplateVars().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMainMenuGUI::renderAwareness | ( | ) |
Render awareness tool.
Definition at line 1255 of file class.ilMainMenuGUI.php.
References ilAwarenessGUI\getInstance().
Referenced by setTemplateVars().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1304 of file class.ilMainMenuGUI.php.
References $DIC, $factory, $main_tpl, $url, ilBTControllerGUI\CMD_GET_POPOVER_CONTENT, ilBTControllerGUI\FROM_URL, ILIAS\BackgroundTasks\BucketMeta\getState(), ilBTControllerGUI\hash(), and ilBTControllerGUI\REPLACE_SIGNAL.
Referenced by setTemplateVars().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMainMenuGUI::renderDropDown | ( | $a_tpl, | |
| $a_id | |||
| ) |
GetDropDownHTML.
Definition at line 942 of file class.ilMainMenuGUI.php.
References $id, $ilSetting, $lng, $settings, ilObjUserTracking\_enabledLearningProgress(), ilCalendarSettings\_getInstance(), ilBuddySystem\getInstance(), ilAdvancedSelectionListGUI\ICON_ARROW, and Monolog\Handler\mail().
Referenced by renderMainMenuListEntries().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMainMenuGUI::renderEntry | ( | $a_tpl, | |
| $a_id, | |||
| $a_txt, | |||
| $a_script, | |||
$a_target = "_top" |
|||
| ) |
Render main menu entry.
return
Definition at line 496 of file class.ilMainMenuGUI.php.
References $_GET, $ctrl, $GLOBALS, $id, $ilCtrl, $ilSetting, $lng, $nav_history, $settings, $t, ilObjUserTracking\_enabledLearningProgress(), ilObject\_getIcon(), ilCalendarSettings\_getInstance(), ilLink\_getStaticLink(), ilObjUserTracking\_hasLearningProgressLearner(), ilObjUserTracking\_hasLearningProgressOtherUsers(), ilObject\_lookupObjId(), ilPersonalDesktopGUI\CMD_JUMP_TO_MY_STAFF, ilBadgeHandler\getInstance(), ilBuddySystem\getInstance(), ilMyStaffAccess\getInstance(), ilAccessKey\getKey(), ilHelp\getMainMenuTooltip(), ilUtil\img(), ilAccessKey\LAST_VISITED, Monolog\Handler\mail(), ilAccessKey\PERSONAL_DESKTOP, ilUtil\shortenText(), and user().
Referenced by renderMainMenuListEntries().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMainMenuGUI::renderHelpButtons | ( | ) |
Render help button.
return
Definition at line 1135 of file class.ilMainMenuGUI.php.
References $ctrl, $help, $ilCtrl, $ilSetting, $ilUser, $lng, $main_tpl, $settings, $tpl, $user, ilTooltipGUI\addTooltip(), defined, and getMode().
Referenced by setTemplateVars().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMainMenuGUI::renderMainMenuListEntries | ( | $a_tpl, | |
$a_call_get = true |
|||
| ) |
desc
return
Definition at line 443 of file class.ilMainMenuGUI.php.
References $access, $GLOBALS, $lng, $nd, $title, $tree, _checkAdministrationPermission(), renderDropDown(), and renderEntry().
Referenced by setTemplateVars().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1244 of file class.ilMainMenuGUI.php.
Referenced by setTemplateVars().
Here is the caller graph for this function:
|
protected |
| \ilObjUser | $user | |
| \ilTemplate | $mainTpl | |
| \ilLanguage | $lng |
Definition at line 1268 of file class.ilMainMenuGUI.php.
References $lng, $user, and getMode().
Referenced by setTemplateVars().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMainMenuGUI::renderStatusBox | ( | $a_tpl | ) |
Render status box.
Definition at line 414 of file class.ilMainMenuGUI.php.
References $ilUser, $user, ilMailGlobalServices\getNumberOfNewMailsByUserId(), and Monolog\Handler\mail().
Referenced by setTemplateVars().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMainMenuGUI::setActive | ( | $a_active | ) |
| string | $a_active | "desktop"|"repository"|"search"|"mail"|"chat_invitation"|"administration" |
Definition at line 179 of file class.ilMainMenuGUI.php.
| ilMainMenuGUI::setLoginTargetPar | ( | $a_val | ) |
Set target parameter for login (public sector).
This is used by the main menu
Definition at line 188 of file class.ilMainMenuGUI.php.
| ilMainMenuGUI::setMode | ( | $a_value | ) |
Definition at line 147 of file class.ilMainMenuGUI.php.
Referenced by LTI\ilMainMenuGUI\__construct(), __construct(), and initMemberView().
Here is the caller graph for this function:| ilMainMenuGUI::setTemplateVars | ( | ) |
set all template variables (images, scripts, target frames, ...)
Reimplemented in LTI\ilMainMenuGUI.
Definition at line 231 of file class.ilMainMenuGUI.php.
References $GLOBALS, $html, $ilUser, $lng, $main_tpl, $plugin_admin, $rbacsystem, $user, ilSearchSettings\_getSearchSettingRefId(), ilRegistrationSettings\_lookupRegistrationType(), ilTemplate\buildLoginTarget(), defined, getHeaderURL(), ilUtil\getImagePath(), getLanguageSelection(), getLoginTargetPar(), getMode(), ilUtil\getStyleSheetLocation(), IL_COMP_SERVICE, IL_REG_DISABLED, ilUtil\img(), populateWithBuddySystem(), populateWithOnScreenChat(), renderAwareness(), renderBackgroundTasks(), renderHelpButtons(), renderMainMenuListEntries(), renderOnScreenChatMenu(), renderOnScreenNotifications(), and renderStatusBox().
Referenced by getHTML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMainMenuGUI::setTopBarBack | ( | $a_url, | |
$a_caption = null |
|||
| ) |
Definition at line 157 of file class.ilMainMenuGUI.php.
Referenced by initMemberView().
Here is the caller graph for this function:| ilMainMenuGUI::showLogoOnly | ( | $a_value | ) |
Toggle rendering of main menu, search, user info.
| bool | $a_value |
Definition at line 1287 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 47 of file class.ilMainMenuGUI.php.
Referenced by renderMainMenuListEntries().
|
protected |
Definition at line 62 of file class.ilMainMenuGUI.php.
Referenced by renderEntry(), and renderHelpButtons().
|
protected |
Definition at line 67 of file class.ilMainMenuGUI.php.
Referenced by renderHelpButtons().
|
protected |
Definition at line 32 of file class.ilMainMenuGUI.php.
Referenced by LTI\ilMainMenuGUI\__construct(), getLanguageSelection(), initMemberView(), renderDropDown(), renderEntry(), renderHelpButtons(), renderMainMenuListEntries(), renderOnScreenNotifications(), LTI\ilMainMenuGUI\setTemplateVars(), and setTemplateVars().
| ilMainMenuGUI::$mail |
Definition at line 76 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 81 of file class.ilMainMenuGUI.php.
Referenced by renderBackgroundTasks(), renderHelpButtons(), and setTemplateVars().
|
protected |
Definition at line 83 of file class.ilMainMenuGUI.php.
Referenced by getMode().
|
protected |
Definition at line 52 of file class.ilMainMenuGUI.php.
Referenced by renderEntry().
|
protected |
Definition at line 37 of file class.ilMainMenuGUI.php.
Referenced by setTemplateVars().
|
protected |
Definition at line 22 of file class.ilMainMenuGUI.php.
Referenced by LTI\ilMainMenuGUI\__construct(), __construct(), _checkAdministrationPermission(), LTI\ilMainMenuGUI\setTemplateVars(), and setTemplateVars().
|
protected |
Definition at line 57 of file class.ilMainMenuGUI.php.
Referenced by renderDropDown(), renderEntry(), and renderHelpButtons().
| ilMainMenuGUI::$start_template |
Definition at line 75 of file class.ilMainMenuGUI.php.
| ilMainMenuGUI::$target |
Definition at line 74 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 85 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 84 of file class.ilMainMenuGUI.php.
| ilMainMenuGUI::$tpl |
Definition at line 72 of file class.ilMainMenuGUI.php.
Referenced by renderHelpButtons().
|
protected |
Definition at line 42 of file class.ilMainMenuGUI.php.
Referenced by renderMainMenuListEntries(), and LTI\ilMainMenuGUI\setTemplateVars().
|
protected |
Definition at line 27 of file class.ilMainMenuGUI.php.
Referenced by renderHelpButtons(), renderOnScreenNotifications(), renderStatusBox(), and setTemplateVars().
| const ilMainMenuGUI::MODE_FULL = 1 |
Definition at line 87 of file class.ilMainMenuGUI.php.
Referenced by ilPersonalWorkspaceGUI\executeCommand(), and getSpacerClass().
| const ilMainMenuGUI::MODE_TOPBAR_MEMBERVIEW = 4 |
Definition at line 90 of file class.ilMainMenuGUI.php.
Referenced by getSpacerClass().
| const ilMainMenuGUI::MODE_TOPBAR_ONLY = 2 |
Definition at line 88 of file class.ilMainMenuGUI.php.
Referenced by getSpacerClass(), ilObjPortfolioBaseGUI\preview(), ilObjBlogGUI\renderFullScreen(), and ilTemplate\setLocator().
| const ilMainMenuGUI::MODE_TOPBAR_REDUCED = 3 |
Definition at line 89 of file class.ilMainMenuGUI.php.
Referenced by getSpacerClass(), and ilTemplate\setLocator().