TYPO3
7.6
|
Static Public Member Functions | |
static | run ($relativePathPart= '') |
static | isFunctionDisabled ($function) |
Static Protected Member Functions | |
static | defineBaseConstants () |
static | definePaths ($relativePathPart= '') |
static | checkMainPathsExist () |
static | initializeGlobalVariables () |
static | initializeGlobalTimeTrackingVariables () |
static | initializeBasicErrorReporting () |
static | getTypo3Os () |
static | getPathThisScript () |
static | getPathThisScriptNonCli () |
static | getPathThisScriptCli () |
static | getPathSite ($relativePathPart) |
static | getUnifiedDirectoryNameWithTrailingSlash ($absolutePath) |
static | dieWithMessage ($message) |
Static Protected Attributes | |
static | $supportedCgiServerApis |
static | $disabledFunctions = null |
Class to encapsulate base setup of bootstrap.
This class contains all code that must be executed by every entry script.
It sets up all basic paths, constants, global variables and checks the basic environment TYPO3 runs in.
This class does not use any TYPO3 instance specific configuration, it only sets up things based on the server environment and core code. Even with a missing typo3conf/localconf.php this script will be successful.
The script aborts execution with an error message if some part fails or conditions are not met.
This script is internal code and subject to change. DO NOT use it in own code, or be prepared your code might break in future versions of the core.
Definition at line 38 of file SystemEnvironmentBuilder.php.
|
staticprotected |
Check if path and script file name calculation was successful, exit if not.
Definition at line 182 of file SystemEnvironmentBuilder.php.
|
staticprotected |
Define all simple constants that have no dependency to local configuration
Definition at line 85 of file SystemEnvironmentBuilder.php.
|
staticprotected |
Calculate all required base paths and set as constants.
string | $relativePathPart | Relative path of the entry script back to document root |
Definition at line 152 of file SystemEnvironmentBuilder.php.
|
staticprotected |
Echo out a text message and die
string | $message |
Definition at line 403 of file SystemEnvironmentBuilder.php.
|
staticprotected |
Calculate the document root part to the instance from PATH_thisScript
We have two main scenarios for entry points:
string | $relativePathPart | Relative directory part from document root to script path |
Definition at line 372 of file SystemEnvironmentBuilder.php.
|
staticprotected |
Calculate PATH_thisScript
First step in path calculation: Goal is to find the absolute path of the entry script that was called without resolving any links. This is important since the TYPO3 entry points are often linked to a central core location, so we can not use the php magic FILE here, but resolve the called script path from given server environments.
This path is important to calculate the document root (PATH_site). The strategy is to find out the script name that was called in the first place and to subtract the local part from it to find the document root.
Definition at line 277 of file SystemEnvironmentBuilder.php.
|
staticprotected |
Calculate path to entry script if in cli mode.
First argument of a cli script is the path to the script that was called. If the script does not start with / (or A:\ for Windows), the path is not absolute yet, and the current working directory is added.
Definition at line 325 of file SystemEnvironmentBuilder.php.
References elseif.
|
staticprotected |
Calculate path to entry script if not in cli mode.
Depending on the environment, the script path is found in different $_SERVER variables.
Definition at line 293 of file SystemEnvironmentBuilder.php.
References elseif.
|
staticprotected |
Determine the operating system TYPO3 is running on.
Definition at line 254 of file SystemEnvironmentBuilder.php.
|
staticprotected |
Remove file name from script path and unify for Windows and Unix
string | $absolutePath | Absolute path to script |
Definition at line 389 of file SystemEnvironmentBuilder.php.
|
staticprotected |
Initialize basic error reporting.
There are a lot of extensions that have no strict / notice / deprecated free ext_localconf or ext_tables. Since the final error reporting must be set up after those extension files are read, a default configuration is needed to suppress error reporting meanwhile during further bootstrap.
Definition at line 243 of file SystemEnvironmentBuilder.php.
|
staticprotected |
Initialize global time tracking variables. These are helpers to for example output script parsetime at the end of a script.
Definition at line 216 of file SystemEnvironmentBuilder.php.
References $GLOBALS, and GeneralUtility\milliseconds().
|
staticprotected |
Set up / initialize several globals variables
Definition at line 201 of file SystemEnvironmentBuilder.php.
References $GLOBALS.
|
static |
Check if the given function is disabled in the system
string | $function |
Definition at line 415 of file SystemEnvironmentBuilder.php.
References GeneralUtility\trimExplode().
|
static |
Run base setup. This entry method is used in all scopes (FE, BE, eid, ajax, ...)
Definition at line 70 of file SystemEnvironmentBuilder.php.
Referenced by Bootstrap\baseSetup().
|
staticprotected |
Definition at line 60 of file SystemEnvironmentBuilder.php.
|
staticprotected |
Definition at line 47 of file SystemEnvironmentBuilder.php.