t3lib_loadModules Klassenreferenz
Aufstellung aller Elemente
Dokumentation der Elementfunktionen
| 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
- Parameter:
-
- Rückgabe:
- string If found, the relative path from PATH_site
| 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.
- Parameter:
-
| string | Module name |
| string | Absolute path to module |
- Rückgabe:
- mixed See description of function
| 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)
- Parameter:
-
| string | Module name |
| array | MCONF array (module configuration array) from the modules conf.php file (contains settings about what access level the module has) |
- Rückgabe:
- boolean True if access is granted for $this->BE_USER
| 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
- Parameter:
-
| string | Module name |
| array | MCONF array (module configuration array) from the modules conf.php file (contains settings about workspace restrictions) |
- Rückgabe:
- boolean True if access is granted for $this->BE_USER
| t3lib_loadModules::cleanName |
( |
$ |
str |
) |
|
The $str is cleaned so that it contains alphanumerical characters only. Modules must only consist of these characters
- Parameter:
-
| string | String to clean up |
- Rückgabe:
- string
| t3lib_loadModules::getRelativePath |
( |
$ |
baseDir, |
|
|
$ |
destDir | |
|
) |
| | |
Get relative path for $destDir compared to $baseDir
- Parameter:
-
| string | Base directory |
| string | Destination directory |
- Rückgabe:
- string The relative path of destination compared to base.
| 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.
- Parameter:
-
| 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. |
- Rückgabe:
- void
| 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)
- Parameter:
-
| array | moduleArray ($TBE_MODULES) |
- Rückgabe:
- array Output structure with available modules
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
- /srv/www/vhosts/typo3.local/typo3_src-4.2.10/t3lib/class.t3lib_loadmodules.php