ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 (int $a_value) | |
getMode () | |
setTopBarBack ($a_url, $a_caption=null) | |
getSpacerClass () | |
setActive ($a_active) | |
setLoginTargetPar ($a_val) | |
getLoginTargetPar () | |
getHTML () | |
renderAwareness () | |
Render awareness tool. More... | |
showLogoOnly (bool $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 () | |
addToolbarTooltip (string $element_id, string $help_id) | |
Add toolbar tooltip. More... | |
Protected Attributes | |
$rbacsystem | |
$user | |
$lng | |
$plugin_admin | |
$tree | |
$access | |
$nav_history | |
$settings | |
$ctrl | |
$help | |
$main_tpl | |
$mode | |
$topbar_back_url | |
$topbar_back_caption | |
Private Member Functions | |
setTemplateVars () | |
Set all template variables (images, scripts, target frames, ...) More... | |
renderStatusBox (ilTemplate $a_tpl) | |
renderHelpButtons () | |
populateWithBuddySystem () | |
Includes all buddy system/user connections related javascript code. More... | |
populateWithOnScreenChat () | |
renderOnScreenChatMenu () | |
renderOnScreenNotifications (\ilObjUser $user, \ilTemplate $mainTpl, \ilLanguage $lng) | |
getHeaderURL () | |
renderBackgroundTasks () | |
Handles display of the main menu.
Definition at line 15 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 83 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 454 of file class.ilMainMenuGUI.php.
References $DIC, and $rbacsystem.
Referenced by ilObjMediaPoolGUI\createMediaFromUploadDir(), ilObjMediaPoolGUI\listMedia(), and ilObjMediaPoolGUI\selectUploadDirFiles().
|
protected |
Add toolbar tooltip.
string | $element_id | |
string | $help_id |
Definition at line 764 of file class.ilMainMenuGUI.php.
References ilTooltipGUI\addTooltip(), and ilHelp\getMainMenuTooltip().
Referenced by renderAwareness(), renderBackgroundTasks(), renderHelpButtons(), renderOnScreenChatMenu(), renderStatusBox(), and setTemplateVars().
|
private |
Definition at line 673 of file class.ilMainMenuGUI.php.
References $url, and ilUserUtil\getStartingPointAsUrl().
Referenced by setTemplateVars().
ilMainMenuGUI::getHTML | ( | ) |
ilTemplateException |
Definition at line 474 of file class.ilMainMenuGUI.php.
References ilYuiUtil\initConnection(), and setTemplateVars().
|
static |
bool | $a_in_topbar |
Definition at line 221 of file class.ilMainMenuGUI.php.
References $_SERVER, $base, $DIC, $languages, $lng, and ilUtil\appendUrlParameterString().
Referenced by ilStartUpGUI\getLanguageSelection().
ilMainMenuGUI::getLoginTargetPar | ( | ) |
Definition at line 210 of file class.ilMainMenuGUI.php.
Referenced by setTemplateVars().
ilMainMenuGUI::getMode | ( | ) |
Definition at line 149 of file class.ilMainMenuGUI.php.
References $mode.
Referenced by getSpacerClass(), renderHelpButtons(), renderOnScreenNotifications(), and setTemplateVars().
ilMainMenuGUI::getSpacerClass | ( | ) |
Definition at line 169 of file class.ilMainMenuGUI.php.
References getMode().
|
protected |
Definition at line 491 of file class.ilMainMenuGUI.php.
References $lng, $url, ilLink\_getLink(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilMemberViewSettings\getInstance(), setMode(), and setTopBarBack().
Referenced by __construct().
|
private |
Includes all buddy system/user connections related javascript code.
Definition at line 604 of file class.ilMainMenuGUI.php.
References ilBuddySystem\getInstance(), and ilBuddySystemGUI\initializeFrontend().
Referenced by setTemplateVars().
|
private |
Definition at line 612 of file class.ilMainMenuGUI.php.
References ilOnScreenChatGUI\initializeFrontend().
Referenced by setTemplateVars().
ilMainMenuGUI::renderAwareness | ( | ) |
Render awareness tool.
Definition at line 629 of file class.ilMainMenuGUI.php.
References addToolbarTooltip(), and ilAwarenessGUI\getInstance().
Referenced by setTemplateVars().
|
private |
Definition at line 685 of file class.ilMainMenuGUI.php.
References $DIC, $factory, $main_tpl, $url, addToolbarTooltip(), ilBTControllerGUI\CMD_GET_POPOVER_CONTENT, ilBTControllerGUI\FROM_URL, ILIAS\BackgroundTasks\BucketMeta\getState(), ilBTControllerGUI\hash(), and ilBTControllerGUI\REPLACE_SIGNAL.
Referenced by setTemplateVars().
|
private |
Definition at line 514 of file class.ilMainMenuGUI.php.
References $ctrl, $help, $ilCtrl, $ilSetting, $ilUser, $lng, $main_tpl, $settings, $user, addToolbarTooltip(), ilTooltipGUI\addTooltip(), and getMode().
Referenced by setTemplateVars().
|
private |
Definition at line 618 of file class.ilMainMenuGUI.php.
References addToolbarTooltip().
Referenced by setTemplateVars().
|
private |
\ilObjUser | $user | |
\ilTemplate | $mainTpl | |
\ilLanguage | $lng |
Definition at line 644 of file class.ilMainMenuGUI.php.
References getMode(), and ilObjUser\isAnonymous().
Referenced by setTemplateVars().
|
private |
ilTemplate | $a_tpl |
Definition at line 425 of file class.ilMainMenuGUI.php.
References $ilUser, $user, addToolbarTooltip(), ilMailGlobalServices\getNumberOfNewMailsByUserId(), Monolog\Handler\mail(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by setTemplateVars().
ilMainMenuGUI::setActive | ( | $a_active | ) |
string | $a_active | "desktop"|"repository"|"search"|"mail"|"chat_invitation"|"administration" |
Definition at line 189 of file class.ilMainMenuGUI.php.
ilMainMenuGUI::setLoginTargetPar | ( | $a_val | ) |
This is used by the main menu
Definition at line 200 of file class.ilMainMenuGUI.php.
ilMainMenuGUI::setMode | ( | int | $a_value | ) |
int | $a_value | accepts values: self::MODE_TOPBAR_ONLY: self::MODE_TOPBAR_REDUCED: self::MODE_TOPBAR_MEMBERVIEW: case self::MODE_FULL: |
Definition at line 140 of file class.ilMainMenuGUI.php.
Referenced by LTI\ilMainMenuGUI\__construct(), __construct(), and initMemberView().
|
private |
Set all template variables (images, scripts, target frames, ...)
Definition at line 254 of file class.ilMainMenuGUI.php.
References $GLOBALS, $html, $ilUser, $lng, $main_tpl, $plugin_admin, $rbacsystem, $user, ilSearchSettings\_getSearchSettingRefId(), ilRegistrationSettings\_lookupRegistrationType(), addToolbarTooltip(), ilTemplate\buildLoginTarget(), getHeaderURL(), ilUtil\getImagePath(), getLoginTargetPar(), getMode(), ilUtil\getStyleSheetLocation(), IL_REG_DISABLED, ilUtil\img(), populateWithBuddySystem(), populateWithOnScreenChat(), renderAwareness(), renderBackgroundTasks(), renderHelpButtons(), renderOnScreenChatMenu(), renderOnScreenNotifications(), and renderStatusBox().
Referenced by LTI\ilMainMenuGUI\getHTML(), and getHTML().
ilMainMenuGUI::setTopBarBack | ( | $a_url, | |
$a_caption = null |
|||
) |
$a_url | ||
null | $a_caption |
Definition at line 159 of file class.ilMainMenuGUI.php.
Referenced by initMemberView().
ilMainMenuGUI::showLogoOnly | ( | bool | $a_value | ) |
Toggle rendering of main menu, search, user info.
bool | $a_value |
Definition at line 664 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 41 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 53 of file class.ilMainMenuGUI.php.
Referenced by renderHelpButtons().
|
protected |
Definition at line 57 of file class.ilMainMenuGUI.php.
Referenced by renderHelpButtons().
|
protected |
Definition at line 29 of file class.ilMainMenuGUI.php.
Referenced by LTI\ilMainMenuGUI\__construct(), getLanguageSelection(), initMemberView(), renderHelpButtons(), LTI\ilMainMenuGUI\setTemplateVars(), and setTemplateVars().
ilMainMenuGUI::$mail |
Definition at line 64 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 68 of file class.ilMainMenuGUI.php.
Referenced by renderBackgroundTasks(), renderHelpButtons(), and setTemplateVars().
|
protected |
Definition at line 69 of file class.ilMainMenuGUI.php.
Referenced by getMode().
|
protected |
Definition at line 45 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 33 of file class.ilMainMenuGUI.php.
Referenced by setTemplateVars().
|
protected |
Definition at line 21 of file class.ilMainMenuGUI.php.
Referenced by LTI\ilMainMenuGUI\__construct(), __construct(), _checkAdministrationPermission(), LTI\ilMainMenuGUI\setTemplateVars(), and setTemplateVars().
|
protected |
Definition at line 49 of file class.ilMainMenuGUI.php.
Referenced by renderHelpButtons().
ilMainMenuGUI::$start_template |
Definition at line 63 of file class.ilMainMenuGUI.php.
ilMainMenuGUI::$target |
Definition at line 62 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 71 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 70 of file class.ilMainMenuGUI.php.
ilMainMenuGUI::$tpl |
Definition at line 61 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 37 of file class.ilMainMenuGUI.php.
Referenced by LTI\ilMainMenuGUI\setTemplateVars().
|
protected |
Definition at line 25 of file class.ilMainMenuGUI.php.
Referenced by renderHelpButtons(), renderStatusBox(), and setTemplateVars().
const ilMainMenuGUI::MODE_FULL = 1 |
Definition at line 72 of file class.ilMainMenuGUI.php.
Referenced by ilPersonalWorkspaceGUI\executeCommand().
const ilMainMenuGUI::MODE_TOPBAR_MEMBERVIEW = 4 |
Definition at line 75 of file class.ilMainMenuGUI.php.
const ilMainMenuGUI::MODE_TOPBAR_ONLY = 2 |
Definition at line 73 of file class.ilMainMenuGUI.php.
Referenced by ilObjPortfolioBaseGUI\preview(), ilObjBlogGUI\renderFullScreen(), and ilTemplate\setLocator().
const ilMainMenuGUI::MODE_TOPBAR_REDUCED = 3 |
Definition at line 74 of file class.ilMainMenuGUI.php.
Referenced by ilTemplate\setLocator().