ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Handles display of the main menu. More...
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 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().
|
static |
Definition at line 884 of file class.ilMainMenuGUI.php.
References $DIC, and $rbacsystem.
Referenced by ilObjMediaPoolGUI\createMediaFromUploadDir(), ilObjMediaPoolGUI\listMedia(), renderMainMenuListEntries(), and ilObjMediaPoolGUI\selectUploadDirFiles().
|
protected |
Definition at line 1292 of file class.ilMainMenuGUI.php.
References $url, and ilUserUtil\getStartingPointAsUrl().
Referenced by setTemplateVars().
ilMainMenuGUI::getHTML | ( | ) |
Definition at line 897 of file class.ilMainMenuGUI.php.
References setTemplateVars().
|
static |
Definition at line 201 of file class.ilMainMenuGUI.php.
References $_SERVER, $base, $DIC, $lng, and ilUtil\appendUrlParameterString().
Referenced by ilStartUpGUI\getLanguageSelection().
ilMainMenuGUI::getLoginTargetPar | ( | ) |
Get target parameter for login.
Definition at line 196 of file class.ilMainMenuGUI.php.
Referenced by setTemplateVars().
ilMainMenuGUI::getMode | ( | ) |
Definition at line 152 of file class.ilMainMenuGUI.php.
References $mode.
Referenced by getSpacerClass(), renderHelpButtons(), renderOnScreenNotifications(), and setTemplateVars().
ilMainMenuGUI::getScriptTarget | ( | $a_script | ) |
generates complete script target (private)
Definition at line 875 of file class.ilMainMenuGUI.php.
References defined.
ilMainMenuGUI::getSpacerClass | ( | ) |
Definition at line 163 of file class.ilMainMenuGUI.php.
References getMode().
|
protected |
Init member view type $lng.
Definition at line 915 of file class.ilMainMenuGUI.php.
References $lng, $url, ilLink\_getLink(), ilObject\_lookupObjId(), ilObject\_lookupType(), array, ilMemberViewSettings\getInstance(), setMode(), and setTopBarBack().
Referenced by __construct().
|
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().
|
protected |
Definition at line 1237 of file class.ilMainMenuGUI.php.
References ilOnScreenChatGUI\initializeFrontend().
Referenced by setTemplateVars().
ilMainMenuGUI::renderAwareness | ( | ) |
Render awareness tool.
Definition at line 1255 of file class.ilMainMenuGUI.php.
References ilAwarenessGUI\getInstance().
Referenced by setTemplateVars().
|
protected |
Definition at line 1304 of file class.ilMainMenuGUI.php.
References $DIC, $factory, $main_tpl, $url, array, ilBTControllerGUI\CMD_GET_POPOVER_CONTENT, ilBTControllerGUI\FROM_URL, ILIAS\BackgroundTasks\BucketMeta\getState(), ilBTControllerGUI\hash(), and ilBTControllerGUI\REPLACE_SIGNAL.
Referenced by setTemplateVars().
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().
ilMainMenuGUI::renderEntry | ( | $a_tpl, | |
$a_id, | |||
$a_txt, | |||
$a_script, | |||
$a_target = "_top" |
|||
) |
Render main menu entry.
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, ilMyStaffAccess\getInstance(), ilBuddySystem\getInstance(), ilBadgeHandler\getInstance(), ilAccessKey\getKey(), ilHelp\getMainMenuTooltip(), ilUtil\img(), ilAccessKey\LAST_VISITED, Monolog\Handler\mail(), ilAccessKey\PERSONAL_DESKTOP, ilUtil\shortenText(), and user().
Referenced by renderMainMenuListEntries().
ilMainMenuGUI::renderHelpButtons | ( | ) |
Render help button.
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().
ilMainMenuGUI::renderMainMenuListEntries | ( | $a_tpl, | |
$a_call_get = true |
|||
) |
desc
Definition at line 443 of file class.ilMainMenuGUI.php.
References $access, $GLOBALS, $lng, $nd, $title, $tree, _checkAdministrationPermission(), renderDropDown(), and renderEntry().
Referenced by setTemplateVars().
|
protected |
Definition at line 1244 of file class.ilMainMenuGUI.php.
Referenced by setTemplateVars().
|
protected |
\ilObjUser | $user | |
\ilTemplate | $mainTpl | |
\ilLanguage | $lng |
Definition at line 1268 of file class.ilMainMenuGUI.php.
References getMode(), and ilObjUser\isAnonymous().
Referenced by setTemplateVars().
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().
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().
ilMainMenuGUI::setTemplateVars | ( | ) |
set all template variables (images, scripts, target frames, ...)
Definition at line 231 of file class.ilMainMenuGUI.php.
References $GLOBALS, $html, $ilUser, $lng, $main_tpl, $plugin_admin, $rbacsystem, $user, ilSearchSettings\_getSearchSettingRefId(), ilRegistrationSettings\_lookupRegistrationType(), array, ilTemplate\buildLoginTarget(), defined, getHeaderURL(), ilUtil\getImagePath(), 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().
ilMainMenuGUI::setTopBarBack | ( | $a_url, | |
$a_caption = null |
|||
) |
Definition at line 157 of file class.ilMainMenuGUI.php.
Referenced by initMemberView().
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(), 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(), renderStatusBox(), and setTemplateVars().
const ilMainMenuGUI::MODE_FULL = 1 |
Definition at line 87 of file class.ilMainMenuGUI.php.
Referenced by ilPersonalWorkspaceGUI\executeCommand().
const ilMainMenuGUI::MODE_TOPBAR_MEMBERVIEW = 4 |
Definition at line 90 of file class.ilMainMenuGUI.php.
const ilMainMenuGUI::MODE_TOPBAR_ONLY = 2 |
Definition at line 88 of file class.ilMainMenuGUI.php.
Referenced by ilObjPortfolioBaseGUI\preview(), ilObjBlogGUI\renderFullScreen(), and ilTemplate\setLocator().
const ilMainMenuGUI::MODE_TOPBAR_REDUCED = 3 |
Definition at line 89 of file class.ilMainMenuGUI.php.
Referenced by ilTemplate\setLocator().