ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Handles display of the main menu. More...
Public Member Functions | |
__construct ($a_target="_top", $a_use_start_template=false, ilGlobalTemplate $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 | _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... | |
buildLoginTarget () | |
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 () | |
renderOnScreenChatMenu () | |
getHeaderURL () | |
renderBackgroundTasks () | |
Handles display of the main menu.
Definition at line 14 of file class.ilMainMenuGUI.php.
ilMainMenuGUI::__construct | ( | $a_target = "_top" , |
|
$a_use_start_template = false , |
|||
ilGlobalTemplate | $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 81 of file class.ilMainMenuGUI.php.
References $DIC, $ilUser, $rbacsystem, ilMemberViewSettings\getInstance(), help(), initMemberView(), setMode(), settings(), ui(), and user().
|
static |
Definition at line 379 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 647 of file class.ilMainMenuGUI.php.
References ilTooltipGUI\addTooltip(), and ilHelp\getMainMenuTooltip().
Referenced by renderAwareness(), renderBackgroundTasks(), renderHelpButtons(), renderOnScreenChatMenu(), and setTemplateVars().
|
protected |
Definition at line 662 of file class.ilMainMenuGUI.php.
References $_GET, $DIC, $ilUser, $tree, $type, ilObject\_lookupObjId(), and ilObject\_lookupType().
Referenced by setTemplateVars().
|
private |
Definition at line 563 of file class.ilMainMenuGUI.php.
References $url, and ilUserUtil\getStartingPointAsUrl().
Referenced by setTemplateVars().
ilMainMenuGUI::getHTML | ( | ) |
ilTemplateException |
Definition at line 399 of file class.ilMainMenuGUI.php.
References ilYuiUtil\initConnection(), and setTemplateVars().
ilMainMenuGUI::getLoginTargetPar | ( | ) |
Definition at line 201 of file class.ilMainMenuGUI.php.
Referenced by setTemplateVars().
ilMainMenuGUI::getMode | ( | ) |
Definition at line 140 of file class.ilMainMenuGUI.php.
References $mode.
Referenced by getSpacerClass(), renderHelpButtons(), and setTemplateVars().
ilMainMenuGUI::getSpacerClass | ( | ) |
Definition at line 160 of file class.ilMainMenuGUI.php.
References getMode().
|
protected |
Definition at line 416 of file class.ilMainMenuGUI.php.
References $lng, $url, ilLink\_getLink(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilMemberViewSettings\getInstance(), setMode(), and setTopBarBack().
Referenced by __construct().
ilMainMenuGUI::renderAwareness | ( | ) |
Render awareness tool.
Definition at line 536 of file class.ilMainMenuGUI.php.
References addToolbarTooltip(), and ilAwarenessGUI\getInstance().
Referenced by setTemplateVars().
|
private |
Definition at line 575 of file class.ilMainMenuGUI.php.
References $DIC, $factory, $main_tpl, $url, addToolbarTooltip(), ilBTControllerGUI\FROM_URL, ILIAS\BackgroundTasks\BucketMeta\getState(), and ilBTControllerGUI\hash().
Referenced by setTemplateVars().
|
private |
Definition at line 439 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 525 of file class.ilMainMenuGUI.php.
References addToolbarTooltip().
Referenced by setTemplateVars().
|
private |
ilTemplate | $a_tpl |
Definition at line 367 of file class.ilMainMenuGUI.php.
References $ilUser, $user, and ui().
Referenced by setTemplateVars().
ilMainMenuGUI::setActive | ( | $a_active | ) |
string | $a_active | "desktop"|"repository"|"search"|"chat_invitation"|"administration" |
Definition at line 180 of file class.ilMainMenuGUI.php.
ilMainMenuGUI::setLoginTargetPar | ( | $a_val | ) |
This is used by the main menu
Definition at line 191 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 131 of file class.ilMainMenuGUI.php.
Referenced by __construct(), and initMemberView().
|
private |
Set all template variables (images, scripts, target frames, ...)
Definition at line 210 of file class.ilMainMenuGUI.php.
References $GLOBALS, $ilUser, $lng, $main_tpl, $plugin_admin, $rbacsystem, $user, ilSearchSettings\_getSearchSettingRefId(), ilRegistrationSettings\_lookupRegistrationType(), addToolbarTooltip(), buildLoginTarget(), getHeaderURL(), ilUtil\getImagePath(), getLoginTargetPar(), getMode(), ilUtil\getStyleSheetLocation(), IL_REG_DISABLED, ilUtil\img(), renderAwareness(), renderBackgroundTasks(), renderHelpButtons(), renderOnScreenChatMenu(), and renderStatusBox().
Referenced by getHTML().
ilMainMenuGUI::setTopBarBack | ( | $a_url, | |
$a_caption = null |
|||
) |
$a_url | ||
null | $a_caption |
Definition at line 150 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 554 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 40 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 52 of file class.ilMainMenuGUI.php.
Referenced by renderHelpButtons().
|
protected |
Definition at line 56 of file class.ilMainMenuGUI.php.
Referenced by renderHelpButtons().
|
protected |
Definition at line 28 of file class.ilMainMenuGUI.php.
Referenced by initMemberView(), renderHelpButtons(), and setTemplateVars().
|
protected |
Definition at line 66 of file class.ilMainMenuGUI.php.
Referenced by renderBackgroundTasks(), renderHelpButtons(), and setTemplateVars().
|
protected |
Definition at line 67 of file class.ilMainMenuGUI.php.
Referenced by getMode().
|
protected |
Definition at line 44 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 32 of file class.ilMainMenuGUI.php.
Referenced by setTemplateVars().
|
protected |
Definition at line 20 of file class.ilMainMenuGUI.php.
Referenced by __construct(), _checkAdministrationPermission(), and setTemplateVars().
|
protected |
Definition at line 48 of file class.ilMainMenuGUI.php.
Referenced by renderHelpButtons().
ilMainMenuGUI::$start_template |
Definition at line 62 of file class.ilMainMenuGUI.php.
ilMainMenuGUI::$target |
Definition at line 61 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 69 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 68 of file class.ilMainMenuGUI.php.
ilMainMenuGUI::$tpl |
Definition at line 60 of file class.ilMainMenuGUI.php.
|
protected |
Definition at line 36 of file class.ilMainMenuGUI.php.
Referenced by buildLoginTarget().
|
protected |
Definition at line 24 of file class.ilMainMenuGUI.php.
Referenced by renderHelpButtons(), renderStatusBox(), and setTemplateVars().
const ilMainMenuGUI::MODE_FULL = 1 |
Definition at line 70 of file class.ilMainMenuGUI.php.
Referenced by ilPersonalWorkspaceGUI\executeCommand().
const ilMainMenuGUI::MODE_TOPBAR_MEMBERVIEW = 4 |
Definition at line 73 of file class.ilMainMenuGUI.php.
const ilMainMenuGUI::MODE_TOPBAR_ONLY = 2 |
Definition at line 71 of file class.ilMainMenuGUI.php.
Referenced by ilObjPortfolioBaseGUI\preview(), ilObjBlogGUI\renderFullScreen(), ilCOPageGlobalTemplate\setLocator(), ilRTEGlobalTemplate\setLocator(), ilDataCollectionGlobalTemplate\setLocator(), and ilGlobalTemplate\setLocator().
const ilMainMenuGUI::MODE_TOPBAR_REDUCED = 3 |
Definition at line 72 of file class.ilMainMenuGUI.php.
Referenced by ilCOPageGlobalTemplate\setLocator(), ilRTEGlobalTemplate\setLocator(), ilDataCollectionGlobalTemplate\setLocator(), and ilGlobalTemplate\setLocator().