ILIAS
Release_5_0_x_branch Revision 61816
|
Handles display of the main menu. More...
Public Member Functions | |
ilMainMenuGUI ($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 | |
getTemplate () | |
get output template | |
setLoginTargetPar ($a_val) | |
Set target parameter for login (public sector). | |
getLoginTargetPar () | |
Get target parameter for login. | |
renderStatusBox ($a_tpl) | |
Render status box. | |
renderMainMenuListEntries ($a_tpl, $a_call_get=true) | |
desc | |
renderEntry ($a_tpl, $a_id, $a_txt, $a_script, $a_target="_top") | |
Render main menu entry. | |
getScriptTarget ($a_script) | |
generates complete script target (private) | |
_checkAdministrationPermission () | |
getHTML () | |
renderDropDown ($a_tpl, $a_id) | |
GetDropDownHTML. | |
renderHelpButtons () | |
Render help button. | |
showLogoOnly ($a_value) | |
Toggle rendering of main menu, search, user info. |
Static Public Member Functions | |
static | getLanguageSelection ($a_in_topbar=false) |
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. | |
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::_checkAdministrationPermission | ( | ) |
Definition at line 818 of file class.ilMainMenuGUI.php.
Referenced by ilObjMediaPoolGUI\createMediaFromUploadDir(), ilAdministrationGUI\executeCommand(), ilObjMediaPoolGUI\listMedia(), renderMainMenuListEntries(), and ilObjMediaPoolGUI\selectUploadDirFiles().
|
protected |
Definition at line 1133 of file class.ilMainMenuGUI.php.
References ilUserUtil\getStartingPointAsUrl().
ilMainMenuGUI::getHTML | ( | ) |
Definition at line 830 of file class.ilMainMenuGUI.php.
|
static |
Definition at line 144 of file class.ilMainMenuGUI.php.
References $ilUser, $lng, and ilUtil\appendUrlParameterString().
ilMainMenuGUI::getLoginTargetPar | ( | ) |
Get target parameter for login.
Definition at line 139 of file class.ilMainMenuGUI.php.
ilMainMenuGUI::getMode | ( | ) |
Definition at line 75 of file class.ilMainMenuGUI.php.
References $mode.
Referenced by getSpacerClass(), and renderHelpButtons().
ilMainMenuGUI::getScriptTarget | ( | $a_script | ) |
generates complete script target (private)
Definition at line 798 of file class.ilMainMenuGUI.php.
References $ilias.
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.
ilMainMenuGUI::ilMainMenuGUI | ( | $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(), and setMode().
|
protected |
Init member view type $lng.
Definition at line 848 of file class.ilMainMenuGUI.php.
References $lng, $ref_id, ilLink\_getLink(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilMemberViewSettings\getInstance(), setMode(), and setTopBarBack().
Referenced by ilMainMenuGUI().
ilMainMenuGUI::renderDropDown | ( | $a_tpl, | |
$a_id | |||
) |
GetDropDownHTML.
@return |
Definition at line 876 of file class.ilMainMenuGUI.php.
References $ilSetting, $ilUser, $lng, ilObjUserTracking\_enabledLearningProgress(), ilCalendarSettings\_getInstance(), ilMailGlobalServices\getMailObjectRefId(), and ilAdvancedSelectionListGUI\ICON_ARROW.
Referenced by renderMainMenuListEntries().
ilMainMenuGUI::renderEntry | ( | $a_tpl, | |
$a_id, | |||
$a_txt, | |||
$a_script, | |||
$a_target = "_top" |
|||
) |
Render main menu entry.
@return |
Definition at line 515 of file class.ilMainMenuGUI.php.
References $_GET, $ilCtrl, $ilSetting, $ilUser, $lng, $separator, ilObjUserTracking\_enabledLearningProgress(), ilObject\_getIcon(), ilCalendarSettings\_getInstance(), ilLink\_getStaticLink(), ilObjUserTracking\_hasLearningProgressLearner(), ilObjUserTracking\_hasLearningProgressOtherUsers(), ilObject\_lookupObjId(), ilAccessKey\getKey(), ilMailGlobalServices\getMailObjectRefId(), ilHelp\getMainMenuTooltip(), ilUtil\img(), ilAccessKey\LAST_VISITED, ilAccessKey\PERSONAL_DESKTOP, and ilUtil\shortenText().
Referenced by renderMainMenuListEntries().
ilMainMenuGUI::renderHelpButtons | ( | ) |
Render help button.
@return |
Definition at line 1042 of file class.ilMainMenuGUI.php.
References $ilCtrl, $ilSetting, $ilUser, $lng, $tpl, ilTooltipGUI\addTooltip(), getMode(), and MODE_FULL.
ilMainMenuGUI::renderMainMenuListEntries | ( | $a_tpl, | |
$a_call_get = true |
|||
) |
desc
@return |
Definition at line 459 of file class.ilMainMenuGUI.php.
References $_SESSION, $ilias, $ilSetting, $ilUser, $lng, $nd, _checkAdministrationPermission(), renderDropDown(), and renderEntry().
ilMainMenuGUI::renderStatusBox | ( | $a_tpl | ) |
Render status box.
Definition at line 421 of file class.ilMainMenuGUI.php.
References $ilUser, $lng, ilUtil\getImagePath(), and ilMailGlobalServices\getNumberOfNewMailsByUserId().
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 ilMainMenuGUI(), and initMemberView().
ilMainMenuGUI::setTemplate | ( | & | $tpl | ) |
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 1128 of file class.ilMainMenuGUI.php.
ilMainMenuGUI::$ilias |
Definition at line 20 of file class.ilMainMenuGUI.php.
Referenced by getScriptTarget(), ilMainMenuGUI(), and renderMainMenuListEntries().
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(), and renderHelpButtons().
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().