TYPO3
7.6
|
Public Member Functions | |
__construct () | |
setBackPath ($backPath) | |
getModuleData ($params, $ajaxObj) | |
getLoadedModules () | |
saveMenuState ($params, $ajaxObj) | |
getRawModuleData () | |
renderLogoutButton () | |
setLinkModules ($linkModules) | |
Protected Member Functions | |
getCollapsedStates () | |
unsetHiddenModules () | |
getModuleIcon ($moduleKey) | |
getModuleIconAbsolute ($iconFilename) | |
getModuleIconRelative ($iconFilename) | |
appendQuestionmarkToLink ($link) | |
Protected Attributes | |
$moduleLoader | |
$backPath | |
$linkModules | |
$loadedModules | |
class to render the TYPO3 backend menu for the modules
Definition at line 23 of file ModuleMenuView.php.
__construct | ( | ) |
Constructor, initializes several variables
Definition at line 51 of file ModuleMenuView.php.
References $GLOBALS, GeneralUtility\logDeprecatedFunction(), and GeneralUtility\makeInstance().
|
protected |
Appends a '?' if there is none in the string already
string | $link | Link URL |
Definition at line 346 of file ModuleMenuView.php.
|
protected |
loads the collapse states for the main modules from user's configuration (uc)
Definition at line 86 of file ModuleMenuView.php.
References $GLOBALS.
getLoadedModules | ( | ) |
Returns the loaded modules
Definition at line 152 of file ModuleMenuView.php.
References ModuleMenuView\$loadedModules.
getModuleData | ( | $params, | |
$ajaxObj | |||
) |
ModuleMenu Store loading data
array | $params | |
\TYPO3\CMS\Core\Http\AjaxRequestHandler | $ajaxObj |
Definition at line 102 of file ModuleMenuView.php.
References $GLOBALS, ModuleMenuView\getRawModuleData(), and GeneralUtility\quoteJSvalue().
|
protected |
gets the module icon and its size
string | $moduleKey | Module key |
Definition at line 283 of file ModuleMenuView.php.
References $GLOBALS, ModuleMenuView\getModuleIconAbsolute(), and ModuleMenuView\getModuleIconRelative().
Referenced by ModuleMenuView\getRawModuleData().
|
protected |
Returns the filename readable for the script from PATH_typo3. That means absolute names are just returned while relative names are prepended with the path pointing back to typo3/ dir
string | $iconFilename | Icon filename |
Definition at line 317 of file ModuleMenuView.php.
References GeneralUtility\isAbsPath().
Referenced by ModuleMenuView\getModuleIcon().
|
protected |
Returns relative path to the icon filename for use in img-tags
string | $iconFilename | Icon filename |
Definition at line 332 of file ModuleMenuView.php.
References GeneralUtility\isAbsPath().
Referenced by ModuleMenuView\getModuleIcon().
getRawModuleData | ( | ) |
gets the raw module data
Definition at line 205 of file ModuleMenuView.php.
References $GLOBALS, elseif, ModuleMenuView\getModuleIcon(), GeneralUtility\quoteJSvalue(), GeneralUtility\resolveBackPath(), and ModuleMenuView\unsetHiddenModules().
Referenced by ModuleMenuView\getModuleData().
renderLogoutButton | ( | ) |
renders the logout button form
Definition at line 359 of file ModuleMenuView.php.
References $GLOBALS.
saveMenuState | ( | $params, | |
$ajaxObj | |||
) |
saves the menu's toggle state in the backend user's uc
array | $params | Array of parameters from the AJAX interface, currently unused |
\TYPO3\CMS\Core\Http\AjaxRequestHandler | $ajaxObj | Object of type AjaxRequestHandler |
Definition at line 164 of file ModuleMenuView.php.
References $GLOBALS, and GeneralUtility\_POST().
setBackPath | ( | $backPath | ) |
sets the path back to /typo3/
string | $backPath | Path back to /typo3/ |
\InvalidArgumentException |
Definition at line 73 of file ModuleMenuView.php.
References ModuleMenuView\$backPath.
setLinkModules | ( | $linkModules | ) |
turns linking of modules on or off
bool | $linkModules | Status for linking modules with a-tags, set to FALSE to turn lining off |
\InvalidArgumentException |
Definition at line 376 of file ModuleMenuView.php.
References ModuleMenuView\$linkModules.
|
protected |
Reads User configuration from options.hideModules and removes modules from $this->loadedModules accordingly.
Definition at line 178 of file ModuleMenuView.php.
References $GLOBALS, and GeneralUtility\trimExplode().
Referenced by ModuleMenuView\getRawModuleData().
|
protected |
Definition at line 35 of file ModuleMenuView.php.
Referenced by ModuleMenuView\setBackPath().
|
protected |
Definition at line 40 of file ModuleMenuView.php.
Referenced by ModuleMenuView\setLinkModules().
|
protected |
Definition at line 45 of file ModuleMenuView.php.
Referenced by ModuleMenuView\getLoadedModules().
|
protected |
Definition at line 30 of file ModuleMenuView.php.