TYPO3
7.6
|
Public Member Functions | |
__construct () | |
loadAllowedModules (array $excludeGroupNames=array()) | |
findByGroupName ($groupName= '') | |
findByModuleName ($name) | |
findByModuleNameInGivenEntries ($name,\SplObjectStorage $entries) | |
getRawModuleMenuData () | |
Protected Member Functions | |
convertRawModuleDataToModuleMenuObject (array $rawModuleData) | |
createMenuEntriesForTbeModulesExt () | |
getLanguageService () | |
removeHiddenModules ($loadedModules) | |
getModuleIcon ($moduleKey, $moduleData) | |
getModuleIconAbsolute ($iconFilename) | |
getModuleIconRelative ($iconFilename) | |
Protected Attributes | |
$moduleStorage | |
Repository for backend module menu compiles all data from $GLOBALS[TBE_MODULES]
Definition at line 26 of file BackendModuleRepository.php.
__construct | ( | ) |
Constructs the module menu and gets the Singleton instance of the menu
Definition at line 36 of file BackendModuleRepository.php.
References BackendModuleRepository\convertRawModuleDataToModuleMenuObject(), BackendModuleRepository\createMenuEntriesForTbeModulesExt(), BackendModuleRepository\getRawModuleMenuData(), and GeneralUtility\makeInstance().
|
protected |
Creates the module menu object structure from the raw data array
array | $rawModuleData |
Definition at line 128 of file BackendModuleRepository.php.
Referenced by BackendModuleRepository\__construct().
|
protected |
Creates the "third level" menu entries (submodules for the info module for example) from the TBE_MODULES_EXT array
Definition at line 192 of file BackendModuleRepository.php.
References $GLOBALS, and BackendModuleRepository\findByModuleName().
Referenced by BackendModuleRepository\__construct().
findByGroupName | ( | $groupName = '' | ) |
string | $groupName |
Definition at line 74 of file BackendModuleRepository.php.
findByModuleName | ( | $name | ) |
Finds a module menu entry by name
string | $name |
Definition at line 91 of file BackendModuleRepository.php.
References BackendModuleRepository\findByModuleNameInGivenEntries().
Referenced by BackendModuleRepository\createMenuEntriesForTbeModulesExt().
findByModuleNameInGivenEntries | ( | $name, | |
\SplObjectStorage | $entries | ||
) |
Finds a module menu entry by name in a given storage
string | $name | |
\SplObjectStorage | $entries |
Definition at line 105 of file BackendModuleRepository.php.
Referenced by BackendModuleRepository\findByModuleName().
|
protected |
Return language service instance
Definition at line 222 of file BackendModuleRepository.php.
References $GLOBALS.
|
protected |
gets the module icon and its size
string | $moduleKey | Module key |
array | $moduleData | the compiled data associated with it |
Definition at line 348 of file BackendModuleRepository.php.
References $GLOBALS, elseif, BackendModuleRepository\getModuleIconAbsolute(), BackendModuleRepository\getModuleIconRelative(), and GeneralUtility\makeInstance().
Referenced by BackendModuleRepository\getRawModuleMenuData().
|
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 377 of file BackendModuleRepository.php.
References $GLOBALS, and GeneralUtility\isAbsPath().
Referenced by BackendModuleRepository\getModuleIcon().
|
protected |
Returns relative path to the icon filename for use in img-tags
string | $iconFilename | Icon filename |
Definition at line 392 of file BackendModuleRepository.php.
References GeneralUtility\isAbsPath().
Referenced by BackendModuleRepository\getModuleIcon().
getRawModuleMenuData | ( | ) |
loads the module menu from the moduleloader based on $GLOBALS['TBE_MODULES'] and compiles an array with all the data needed for menu etc.
Definition at line 233 of file BackendModuleRepository.php.
References $GLOBALS, elseif, BackendModuleRepository\getModuleIcon(), GeneralUtility\makeInstance(), GeneralUtility\quoteJSvalue(), BackendModuleRepository\removeHiddenModules(), and GeneralUtility\resolveBackPath().
Referenced by BackendModuleRepository\__construct().
loadAllowedModules | ( | array | $excludeGroupNames = array() | ) |
loads all module information in the module storage
array | $excludeGroupNames |
Definition at line 52 of file BackendModuleRepository.php.
|
protected |
Reads User configuration from options.hideModules and removes modules accordingly.
array | $loadedModules |
Definition at line 316 of file BackendModuleRepository.php.
References $GLOBALS.
Referenced by BackendModuleRepository\getRawModuleMenuData().
|
protected |
Definition at line 31 of file BackendModuleRepository.php.