ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Handles display of the main menu. More...
Public Member Functions | |
__construct ($a_target="_top", $a_use_start_template=false) | |
setMode ($a_value) | |
getMode () | |
setTopBarBack ($a_url, $a_caption=null) | |
getSpacerClass () | |
setActive ($a_active) | |
setTemplate (&$tpl) | |
set output template More... | |
getTemplate () | |
get output template More... | |
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 | |
$ilias | |
$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 () | |
Protected Attributes | |
$mode | |
$topbar_back_url | |
$topbar_back_caption | |
Handles display of the main menu.
Definition at line 13 of file class.ilMainMenuGUI.php.
ilMainMenuGUI::__construct | ( | $a_target = "_top" , |
|
$a_use_start_template = false |
|||
) |
string | $a_target | target frame |
boolean | $a_use_start_template | true means: target scripts should be called through start template |
Definition at line 40 of file class.ilMainMenuGUI.php.
References $ilias, $ilUser, ilMemberViewSettings\getInstance(), ilMailGlobalServices\getMailObjectRefId(), initMemberView(), Monolog\Handler\mail(), and setMode().
|
static |
Definition at line 730 of file class.ilMainMenuGUI.php.
Referenced by ilObjMediaPoolGUI\createMediaFromUploadDir(), ilAdministrationGUI\executeCommand(), ilObjMediaPoolGUI\listMedia(), renderMainMenuListEntries(), and ilObjMediaPoolGUI\selectUploadDirFiles().
|
protected |
Definition at line 1092 of file class.ilMainMenuGUI.php.
References $url, and ilUserUtil\getStartingPointAsUrl().
Referenced by setTemplateVars().
ilMainMenuGUI::getHTML | ( | ) |
Definition at line 742 of file class.ilMainMenuGUI.php.
References setTemplateVars().
|
static |
Definition at line 144 of file class.ilMainMenuGUI.php.
References $_SERVER, $ilUser, $languages, $lng, and ilUtil\appendUrlParameterString().
Referenced by ilStartUpGUI\getLanguageSelection().
ilMainMenuGUI::getLoginTargetPar | ( | ) |
Get target parameter for login.
Definition at line 139 of file class.ilMainMenuGUI.php.
Referenced by setTemplateVars().
ilMainMenuGUI::getMode | ( | ) |
Definition at line 75 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 720 of file class.ilMainMenuGUI.php.
References defined.
ilMainMenuGUI::getSpacerClass | ( | ) |
Definition at line 86 of file class.ilMainMenuGUI.php.
References getMode().
ilMainMenuGUI::getTemplate | ( | ) |
get output template
Definition at line 121 of file class.ilMainMenuGUI.php.
|
protected |
Init member view type $lng.
Definition at line 760 of file class.ilMainMenuGUI.php.
References $lng, $ref_id, $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 1026 of file class.ilMainMenuGUI.php.
References ilBuddySystem\getInstance(), and ilBuddySystemGUI\initializeFrontend().
Referenced by setTemplateVars().
|
protected |
Definition at line 1036 of file class.ilMainMenuGUI.php.
References ilOnScreenChatGUI\initializeFrontend().
Referenced by setTemplateVars().
ilMainMenuGUI::renderAwareness | ( | ) |
Render awareness tool.
Definition at line 1055 of file class.ilMainMenuGUI.php.
References ilAwarenessGUI\getInstance().
Referenced by setTemplateVars().
ilMainMenuGUI::renderDropDown | ( | $a_tpl, | |
$a_id | |||
) |
GetDropDownHTML.
Definition at line 788 of file class.ilMainMenuGUI.php.
References $html, $ilSetting, $ilUser, $lng, 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 443 of file class.ilMainMenuGUI.php.
References $_GET, $ilCtrl, $ilSetting, $lng, $t, ilObjUserTracking\_enabledLearningProgress(), ilObject\_getIcon(), ilCalendarSettings\_getInstance(), ilLink\_getStaticLink(), ilObjUserTracking\_hasLearningProgressLearner(), ilObjUserTracking\_hasLearningProgressOtherUsers(), ilObject\_lookupObjId(), ilBadgeHandler\getInstance(), ilBuddySystem\getInstance(), ilAccessKey\getKey(), ilHelp\getMainMenuTooltip(), ilUtil\img(), ilAccessKey\LAST_VISITED, Monolog\Handler\mail(), ilAccessKey\PERSONAL_DESKTOP, and ilUtil\shortenText().
Referenced by renderMainMenuListEntries().
ilMainMenuGUI::renderHelpButtons | ( | ) |
Render help button.
Definition at line 945 of file class.ilMainMenuGUI.php.
References $ilCtrl, $ilSetting, $ilUser, $lng, $tpl, ilTooltipGUI\addTooltip(), defined, and getMode().
Referenced by setTemplateVars().
ilMainMenuGUI::renderMainMenuListEntries | ( | $a_tpl, | |
$a_call_get = true |
|||
) |
desc
Definition at line 394 of file class.ilMainMenuGUI.php.
References $GLOBALS, $ilias, $ilSetting, $ilUser, $lng, $nd, $title, _checkAdministrationPermission(), renderDropDown(), and renderEntry().
Referenced by setTemplateVars().
|
protected |
Definition at line 1044 of file class.ilMainMenuGUI.php.
Referenced by setTemplateVars().
|
protected |
\ilObjUser | $user | |
\ilTemplate | $mainTpl | |
\ilLanguage | $lng |
Definition at line 1068 of file class.ilMainMenuGUI.php.
References getMode(), and ilObjUser\isAnonymous().
Referenced by setTemplateVars().
ilMainMenuGUI::renderStatusBox | ( | $a_tpl | ) |
Render status box.
Definition at line 365 of file class.ilMainMenuGUI.php.
References $DIC, $ilUser, 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 103 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 131 of file class.ilMainMenuGUI.php.
ilMainMenuGUI::setMode | ( | $a_value | ) |
Definition at line 70 of file class.ilMainMenuGUI.php.
Referenced by __construct(), and initMemberView().
ilMainMenuGUI::setTemplate | ( | & | $tpl | ) |
ilMainMenuGUI::setTemplateVars | ( | ) |
set all template variables (images, scripts, target frames, ...)
Definition at line 173 of file class.ilMainMenuGUI.php.
References $GLOBALS, $html, $ilias, $ilSetting, $ilUser, $lng, 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(), renderHelpButtons(), renderMainMenuListEntries(), renderOnScreenChatMenu(), renderOnScreenNotifications(), and renderStatusBox().
Referenced by getHTML().
ilMainMenuGUI::setTopBarBack | ( | $a_url, | |
$a_caption = null |
|||
) |
Definition at line 80 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 1087 of file class.ilMainMenuGUI.php.
ilMainMenuGUI::$ilias |
Definition at line 20 of file class.ilMainMenuGUI.php.
Referenced by __construct(), renderMainMenuListEntries(), and setTemplateVars().
ilMainMenuGUI::$mail |
Definition at line 24 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 26 of file class.ilMainMenuGUI.php.
Referenced by getMode().
ilMainMenuGUI::$start_template |
Definition at line 23 of file class.ilMainMenuGUI.php.
ilMainMenuGUI::$target |
Definition at line 22 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 28 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 27 of file class.ilMainMenuGUI.php.
ilMainMenuGUI::$tpl |
Definition at line 21 of file class.ilMainMenuGUI.php.
Referenced by renderHelpButtons(), and setTemplate().
const ilMainMenuGUI::MODE_FULL = 1 |
Definition at line 30 of file class.ilMainMenuGUI.php.
Referenced by ilPersonalWorkspaceGUI\executeCommand().
const ilMainMenuGUI::MODE_TOPBAR_MEMBERVIEW = 4 |
Definition at line 33 of file class.ilMainMenuGUI.php.
const ilMainMenuGUI::MODE_TOPBAR_ONLY = 2 |
Definition at line 31 of file class.ilMainMenuGUI.php.
Referenced by ilObjPortfolioBaseGUI\preview(), ilObjBlogGUI\renderFullScreen(), and ilTemplate\setLocator().
const ilMainMenuGUI::MODE_TOPBAR_REDUCED = 3 |
Definition at line 32 of file class.ilMainMenuGUI.php.
Referenced by ilTemplate\setLocator().