|
TYPO3 API
SVNRelease
|
Public Member Functions | |
| load ($modulesArray, $BE_USER= '') | |
| checkExtensionModule ($name) | |
| checkMod ($name, $fullpath) | |
| checkModAccess ($name, $MCONF) | |
| checkModWorkspace ($name, $MCONF) | |
| parseModulesArray ($arr) | |
| cleanName ($str) | |
| getRelativePath ($baseDir, $destDir) | |
Public Attributes | |
| $modules = array() | |
| $absPathArray = array() | |
| $modListGroup = array() | |
| $modListUser = array() | |
| $BE_USER | |
| $observeWorkspaces = FALSE | |
Protected Attributes | |
| $navigationComponents = array() | |
Definition at line 69 of file class.t3lib_loadmodules.php.
| t3lib_loadModules::checkExtensionModule | ( | $ | name | ) |
If the module name ($name) is a module from an extension (has path in $this->absPathArray) then that path is returned relative to PATH_site
| string | Module name |
Definition at line 222 of file class.t3lib_loadmodules.php.
References $TYPO3_LOADED_EXT.
Referenced by load().
| t3lib_loadModules::checkMod | ( | $ | name, |
| $ | fullpath | ||
| ) |
Here we check for the module. Return values: 'notFound': If the module was not found in the path (no "conf.php" file) false: If no access to the module (access check failed) array(): Configuration array, in case a valid module where access IS granted exists.
| string | Module name |
| string | Absolute path to module |
Definition at line 241 of file class.t3lib_loadmodules.php.
References $GLOBALS, $MCONF, $MLANG, checkModAccess(), checkModWorkspace(), getRelativePath(), t3lib_extMgm\isLoaded(), and t3lib_div\resolveBackPath().
Referenced by load().
| t3lib_loadModules::checkModAccess | ( | $ | name, |
| $ | MCONF | ||
| ) |
Returns true if the internal BE_USER has access to the module $name with $MCONF (based on security level set for that module)
| string | Module name |
| array | MCONF array (module configuration array) from the modules conf.php file (contains settings about what access level the module has) |
Definition at line 363 of file class.t3lib_loadmodules.php.
References $MCONF.
Referenced by checkMod().
| t3lib_loadModules::checkModWorkspace | ( | $ | name, |
| $ | MCONF | ||
| ) |
Check if a module is allowed inside the current workspace for be user Processing happens only if $this->observeWorkspaces is TRUE
| string | Module name |
| array | MCONF array (module configuration array) from the modules conf.php file (contains settings about workspace restrictions) |
Definition at line 397 of file class.t3lib_loadmodules.php.
References $MCONF, and t3lib_div\inList().
Referenced by checkMod().
| t3lib_loadModules::cleanName | ( | $ | str | ) |
The $str is cleaned so that it contains alphanumerical characters only. Modules must only consist of these characters
| string | String to clean up |
Definition at line 452 of file class.t3lib_loadmodules.php.
Referenced by parseModulesArray().
| t3lib_loadModules::getRelativePath | ( | $ | baseDir, |
| $ | destDir | ||
| ) |
Get relative path for $destDir compared to $baseDir
| string | Base directory |
| string | Destination directory |
Definition at line 463 of file class.t3lib_loadmodules.php.
References t3lib_div\resolveBackPath().
Referenced by checkMod().
| t3lib_loadModules::load | ( | $ | modulesArray, |
| $ | BE_USER = '' |
||
| ) |
Init. The outcome of the load() function will be a $this->modules array populated with the backend module structure available to the BE_USER Further the global var $LANG will have labels and images for the modules loaded in an internal array.
| array | $modulesArray | should be the global var $TBE_MODULES, $BE_USER can optionally be set to an alternative Backend user object than the global var $BE_USER (which is the currently logged in user) |
| object | Optional backend user object to use. If not set, the global BE_USER object is used. |
Definition at line 100 of file class.t3lib_loadmodules.php.
References $BE_USER, $GLOBALS, checkExtensionModule(), checkMod(), and parseModulesArray().
| t3lib_loadModules::parseModulesArray | ( | $ | arr | ) |
Parses the moduleArray ($TBE_MODULES) into a internally useful structure. Returns an array where the keys are names of the module and the values may be true (only module) or an array (of submodules)
| array | moduleArray ($TBE_MODULES) |
Definition at line 423 of file class.t3lib_loadmodules.php.
References cleanName(), and t3lib_div\trimExplode().
Referenced by load().
| t3lib_loadModules::$absPathArray = array() |
Definition at line 71 of file class.t3lib_loadmodules.php.
| t3lib_loadModules::$BE_USER |
Definition at line 81 of file class.t3lib_loadmodules.php.
Referenced by load().
| t3lib_loadModules::$modListGroup = array() |
Definition at line 73 of file class.t3lib_loadmodules.php.
| t3lib_loadModules::$modListUser = array() |
Definition at line 74 of file class.t3lib_loadmodules.php.
| t3lib_loadModules::$modules = array() |
Definition at line 70 of file class.t3lib_loadmodules.php.
t3lib_loadModules::$navigationComponents = array() [protected] |
Definition at line 89 of file class.t3lib_loadmodules.php.
| t3lib_loadModules::$observeWorkspaces = FALSE |
Definition at line 82 of file class.t3lib_loadmodules.php.
1.7.5.1