Attention
TYPO3 v6 has reached its end-of-life April 18th, 2017 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.
There is no further ELTS support. It is strongly recommended updating your project.
Global variables¶
Note
Variables in italics may be set in a script prior to
inclusion of init.php
so they are optional.
Note
To make the table below a bit more compact, namespaces were left out. Here are the fully qualified class names referred to below:
"SystemEnvironmentBuilder" =
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder
"Bootstrap" =
\TYPO3\CMS\Core\Core\Bootstrap
Global variable |
Defined in |
Description |
Avail. in FE |
---|---|---|---|
$TYPO3_CONF_VARS |
|
TYPO3 configuration array. Please refer to mentioned file where each option is described in detail as comments. The same comments are also available in the Install Tool under the menu "All Configuration". |
Yes |
$TYPO3_LOADED_EXT |
Bootstrap::populateTypo3LoadedExtGlobal() |
Array with all loaded extensions listed with a set of paths. You can
check if an extension is loaded by the function
|
Yes |
$TYPO3_DB |
Bootstrap::initializeTypo3DbGlobal() |
An instance of the TYPO3 DB wrapper class, You have to use this object for all interaction with the database.
|
Yes |
$EXEC_TIME |
SystemEnvironmentBuilder::initializeGlobalTimeTrackingVariables() |
Is set to |
YES |
$SIM_EXEC_TIME |
SystemEnvironmentBuilder::initializeGlobalTimeTrackingVariables() |
Is set to |
Yes |
$PARSETIME_START |
SystemEnvironmentBuilder::initializeGlobalTimeTrackingVariables() |
Time in milliseconds right after inclusion of the configuration. |
No |
$TYPO3_AJAX |
ajax.php |
Set to true to indicate that an AJAX call is being processed |
No |
$CLIENT |
SystemEnvironmentBuilder::initializeGlobalVariables() |
Array with browser information (based on HTTP_USER_AGENT). Array keys: "BROWSER" = msie,net,opera or blank, "VERSION" = browser version as double, "SYSTEM" = win,mac,unix |
Yes |
$PAGES_TYPES |
typo3/sysext/core/ext_tables.php |
See Page types |
(occasionally) |
$TCA |
Bootstrap::loadExtensionTables() |
See TCA Reference |
Yes, partly |
$TBE_MODULES |
typo3/sysext/core/ext_tables.php |
The backend main/sub-module structure. See section elsewhere plus
source code of class |
(occasionally) |
$TBE_STYLES |
typo3/sysext/core/ext_tables.php |
Contains information related to BE skinning. |
(occasionally) |
$T3_SERVICES |
SystemEnvironmentBuilder::initializeGlobalVariables() |
Global registration of services. |
Yes |
$T3_VAR |
SystemEnvironmentBuilder::initializeGlobalVariables() |
Space for various internal global data storage in TYPO3. Each key in this array is a data space for an application. Keys currently defined for use is: ['callUserFunction'] + ['callUserFunction_classPool']: Used by
['getUserObj'] : Used by ['RTEobj'] : Used to hold the current RTE object if any. See
['ext'][ extension-key ] : Free space for extensions. |
Yes |
$FILEICONS |
typo3/sysext/core/ext_tables.php |
Associative array; keys are the type (e.g. "tif") and values are the filename (without path). |
(occasionally) |
$WEBMOUNTS |
Bootstrap::initializeBackendUserMounts() |
Array of uid's to be mounted in the page-tree. |
(depends) |
$FILEMOUNTS |
Bootstrap::initializeBackendUserMounts() |
Array of filepaths on the server to be mounted in the directory tree. |
(depends) |
$BE_USER |
Bootstrap::initializeBackendUser() |
Backend user object. See Backend User Object. |
(depends) |
$TBE_MODULES_EXT |
[In ext_tables.php files of extensions] |
Used to store information about modules from extensions that should be included in "function menus" of real modules. See the Extension API for details. |
(occasionally) |
$TCA_DESCR |
[tables.php files] |
Can be set to contain file references to local lang files containing
|
No |
Exploring global variables¶
Many of the global variables described above can be inspected using the Admin Tools > Configuration module.
Warning
This module is always viewed in the BE context. Variables defined only in the FE context will not be visible there.