| ILIAS
    release_5-2 Revision v5.2.25-18-g3f80b828510
    | 
ILIAS Initialisation Utility Class perform basic setup: init database handler, load configuration file, init user authentification & error handler, load object type definitions. More...
 Collaboration diagram for ilInitialisation:
 Collaboration diagram for ilInitialisation:| Static Public Member Functions | |
| static | setSessionHandler () | 
| set session handler to db  More... | |
| static | goToPublicSection () | 
| go to public section  More... | |
| static | reinitILIAS () | 
| static | initILIAS () | 
| ilias initialisation  More... | |
| static | handleErrorReporting () | 
| Set error reporting level.  More... | |
| static | resumeUserSession () | 
| Resume an existing user session.  More... | |
| static | authenticate () | 
| Try authentication.  More... | |
| Static Protected Member Functions | |
| static | removeUnsafeCharacters () | 
| Remove unsafe characters from GET.  More... | |
| static | recursivelyRemoveUnsafeCharacters ($var) | 
| static | requireCommonIncludes () | 
| get common include code files  More... | |
| static | includePhp5Compliance () | 
| This is a hack for authentication.  More... | |
| static | initIliasIniFile () | 
| This method provides a global instance of class ilIniFile for the ilias.ini.php file in variable $ilIliasIniFile.  More... | |
| static | buildHTTPPath () | 
| builds http path  More... | |
| static | determineClient () | 
| This method determines the current client and sets the constant CLIENT_ID.  More... | |
| static | initClientIniFile () | 
| This method provides a global instance of class ilIniFile for the client.ini.php file in variable $ilClientIniFile.  More... | |
| static | handleMaintenanceMode () | 
| handle maintenance mode  More... | |
| static | initDatabase () | 
| initialise database object $ilDB  More... | |
| static | setCookieConstants () | 
| static | setSessionCookieParams () | 
| set session cookie params  More... | |
| static | initSettings () | 
| initialise $ilSettings object and define constants  More... | |
| static | initStyle () | 
| provide $styleDefinition object  More... | |
| static | initLocale () | 
| Init Locale.  More... | |
| static | goToLogin () | 
| go to login  More... | |
| static | initAccessHandling () | 
| $ilAccess and $rbac... initialisation  More... | |
| static | initLog () | 
| Init log instance.  More... | |
| static | initGlobal ($a_name, $a_class, $a_source_file=null) | 
| Initialize global instance.  More... | |
| static | abortAndDie ($a_message) | 
| Exit.  More... | |
| static | handleDevMode () | 
| Prepare developer tools More... | |
| static | initSession () | 
| Init session.  More... | |
| static | initCore () | 
| Init core objects (level 0)  More... | |
| static | initClient () | 
| Init client-based objects (level 1)  More... | |
| static | initUser () | 
| Init user / authentification (level 2)  More... | |
| static | initUIFramework (\ILIAS\DI\Container $c) | 
| init the ILIAS UI framework.  More... | |
| static | initHTML () | 
| init HTML output (level 3)  More... | |
| static | getCurrentCmd () | 
| Extract current cmd from request.  More... | |
| static | blockedAuthentication ($a_current_script) | 
| Block authentication based on current request.  More... | |
| static | showingLoginForm ($a_current_script) | 
| Is current view the login form?  More... | |
| static | translateMessage ($a_message_id, array $a_message_static=null) | 
| Translate message if possible.  More... | |
| static | redirect ($a_target, $a_message_id='', array $a_message_static=null) | 
| Redirects to target url if context supports it.  More... | |
| Static Protected Attributes | |
| static | $already_initialized | 
ILIAS Initialisation Utility Class perform basic setup: init database handler, load configuration file, init user authentification & error handler, load object type definitions.
Definition at line 29 of file class.ilInitialisation.php.
| 
 | staticprotected | 
Exit.
| string | $a_message | 
Definition at line 799 of file class.ilInitialisation.php.
References $GLOBALS.
Referenced by determineClient(), goToPublicSection(), handleMaintenanceMode(), initClientIniFile(), initSettings(), redirect(), and setSessionHandler().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Try authentication.
This will basically validate the current session
Definition at line 1108 of file class.ilInitialisation.php.
| 
 | staticprotected | 
Block authentication based on current request.
Definition at line 1334 of file class.ilInitialisation.php.
References $_GET, $cmd, ilContext\CONTEXT_APACHE_SSO, ilContext\CONTEXT_SHIBBOLETH, ilContext\CONTEXT_WAC, ilContext\CONTEXT_WEBDAV, getCurrentCmd(), ilLoggerFactory\getLogger(), and ilContext\getType().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | staticprotected | 
builds http path
Definition at line 169 of file class.ilInitialisation.php.
References $_SERVER, $https, $path, ilContext\CONTEXT_APACHE_SSO, defined, ilContext\getType(), ILIAS_MODULE, and ilUtil\removeTrailingPathSeparators().
Referenced by initSettings().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
This method determines the current client and sets the constant CLIENT_ID.
Definition at line 233 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, $client_id, $ilIliasIniFile, abortAndDie(), defined, ilUtil\setCookie(), ilUtil\stripSlashes(), and ilContext\supportsPersistentSessions().
Referenced by initClient().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Extract current cmd from request.
Definition at line 1316 of file class.ilInitialisation.php.
References $cmd.
Referenced by blockedAuthentication().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
go to login
| int | $a_auth_stat | 
Definition at line 691 of file class.ilInitialisation.php.
References $_COOKIE, $GLOBALS, ilLoggerFactory\getLogger(), redirect(), ilSession\SESSION_CLOSE_EXPIRE, ilSession\SESSION_CLOSE_LOGIN, and ilSession\setClosingContext().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
go to public section
| int | $a_auth_stat | 
Definition at line 631 of file class.ilInitialisation.php.
References $_GET, $_SERVER, $GLOBALS, abortAndDie(), redirect(), ilSession\SESSION_CLOSE_EXPIRE, ilSession\SESSION_CLOSE_PUBLIC, and ilSession\setClosingContext().
Referenced by ilAuthUtils\handleForcedAuthentication(), and ilStartUpGUI\processIndexPHP().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Prepare developer tools 
 
Definition at line 811 of file class.ilInitialisation.php.
References defined.
Referenced by initClient().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Set error reporting level.
Definition at line 920 of file class.ilInitialisation.php.
Referenced by ilWebAccessCheckerDelivery\handleRequest(), and initCore().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
handle maintenance mode
Definition at line 376 of file class.ilInitialisation.php.
References abortAndDie(), ilContext\hasHTML(), redirect(), and translateMessage().
Referenced by initClient().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
This is a hack for authentication.
Since the phpCAS lib ships with its own compliance functions.
Definition at line 87 of file class.ilInitialisation.php.
References ilAuthFactory\CONTEXT_CAS, and ilAuthFactory\getContext().
Referenced by initILIAS().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
$ilAccess and $rbac... initialisation
Definition at line 737 of file class.ilInitialisation.php.
References ilRbacSystem\getInstance(), and initGlobal().
Referenced by initUser().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Init client-based objects (level 1)
Definition at line 972 of file class.ilInitialisation.php.
References $GLOBALS, $https, determineClient(), handleDevMode(), handleMaintenanceMode(), initClientIniFile(), initDatabase(), initGlobal(), initLocale(), initLog(), initSettings(), setCookieConstants(), setSessionCookieParams(), setSessionHandler(), and ilContext\usesHTTP().
Referenced by initILIAS().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
This method provides a global instance of class ilIniFile for the client.ini.php file in variable $ilClientIniFile.
It initializes a lot of constants accordingly to the settings in the client.ini.php file.
Preconditions: ILIAS_WEB_DIR and CLIENT_ID must be set.
Definition at line 284 of file class.ilInitialisation.php.
References $_COOKIE, $ilIliasIniFile, abortAndDie(), initGlobal(), redirect(), ilUtil\setCookie(), and ilGlobalCache\setup().
Referenced by initClient().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Init core objects (level 0)
Definition at line 932 of file class.ilInitialisation.php.
References $_POST, $ilErr, ilSession\get(), handleErrorReporting(), initGlobal(), initIliasIniFile(), PEAR_ERROR_CALLBACK, removeUnsafeCharacters(), and requireCommonIncludes().
Referenced by initILIAS().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
initialise database object $ilDB
Definition at line 404 of file class.ilInitialisation.php.
References $ilDB, and initGlobal().
Referenced by initClient().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Initialize global instance.
| string | $a_name | |
| string | $a_class | |
| string | $a_source_file | 
Definition at line 775 of file class.ilInitialisation.php.
References $DIC, and $GLOBALS.
Referenced by initAccessHandling(), initClient(), initClientIniFile(), initCore(), initDatabase(), initHTML(), initIliasIniFile(), initLog(), initSession(), initSettings(), initStyle(), initUser(), and requireCommonIncludes().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
init HTML output (level 3)
Definition at line 1230 of file class.ilInitialisation.php.
References $_GET, $GLOBALS, $ilUser, $tpl, ilUtil\getStyleSheetLocation(), ilContext\hasUser(), initGlobal(), initStyle(), initUIFramework(), and ilSession\set().
Referenced by initILIAS().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
ilias initialisation
Definition at line 839 of file class.ilInitialisation.php.
References $GLOBALS, $tpl, ilLoggerFactory\getInstance(), ilUtil\getStyleSheetLocation(), ilContext\hasHTML(), ilContext\hasUser(), includePhp5Compliance(), ilContext\initClient(), initClient(), initCore(), initHTML(), initSession(), initUser(), resumeUserSession(), ilECSTaskScheduler\start(), and ilContext\supportsPersistentSessions().
Referenced by ilSoapAdministration\getClientInfoXML(), ilSoapAdministration\getInstallationInfoXML(), ilCalendarRemoteAccessHandler\initIlias(), ilWebAccessChecker\initILIAS(), ilSoapAdministration\initIlias(), and reinitILIAS().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
This method provides a global instance of class ilIniFile for the ilias.ini.php file in variable $ilIliasIniFile.
It initializes a lot of constants accordingly to the settings in the ilias.ini.php file.
Definition at line 104 of file class.ilInitialisation.php.
References $ilIliasIniFile, $tz, ilTimeZone\initDefaultTimeZone(), and initGlobal().
Referenced by initCore().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Init Locale.
Definition at line 592 of file class.ilInitialisation.php.
References $GLOBALS, $ilSetting, and $l.
Referenced by initClient().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Init log instance.
Definition at line 758 of file class.ilInitialisation.php.
References $log, ilLoggerFactory\getRootLogger(), and initGlobal().
Referenced by initClient().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Init session.
Definition at line 908 of file class.ilInitialisation.php.
References $GLOBALS, ilAuthSession\getInstance(), and initGlobal().
Referenced by initILIAS().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
initialise $ilSettings object and define constants
Used in Soap
Definition at line 502 of file class.ilInitialisation.php.
References $ilSetting, abortAndDie(), buildHTTPPath(), initGlobal(), and ilContext\usesHTTP().
Referenced by initClient().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
provide $styleDefinition object
Definition at line 541 of file class.ilInitialisation.php.
References ilPluginAdmin\getPluginObject(), IL_COMP_SERVICE, and initGlobal().
Referenced by initHTML().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
init the ILIAS UI framework.
Definition at line 1201 of file class.ilInitialisation.php.
Referenced by initHTML().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Init user / authentification (level 2)
Definition at line 1058 of file class.ilInitialisation.php.
References $ilUser, initAccessHandling(), and initGlobal().
Referenced by initILIAS().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Definition at line 43 of file class.ilInitialisation.php.
References recursivelyRemoveUnsafeCharacters().
Referenced by recursivelyRemoveUnsafeCharacters(), and removeUnsafeCharacters().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Redirects to target url if context supports it.
| string | $a_target | |
| string | $a_message_id | |
| array | $a_message_details | 
Definition at line 1493 of file class.ilInitialisation.php.
References abortAndDie(), defined, ilContext\hasHTML(), ilUtil\redirect(), ilContext\supportsRedirects(), translateMessage(), and ilContext\usesHTTP().
Referenced by goToLogin(), goToPublicSection(), handleMaintenanceMode(), and initClientIniFile().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 831 of file class.ilInitialisation.php.
References initILIAS().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | staticprotected | 
Remove unsafe characters from GET.
Definition at line 34 of file class.ilInitialisation.php.
References $_GET, and recursivelyRemoveUnsafeCharacters().
Referenced by initCore().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
get common include code files
Definition at line 64 of file class.ilInitialisation.php.
References initGlobal(), and ilContext\usesTemplate().
Referenced by initCore().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Resume an existing user session.
Definition at line 1076 of file class.ilInitialisation.php.
References $_SERVER, $GLOBALS, ilLoggerFactory\getLogger(), and ilAuthUtils\handleForcedAuthentication().
Referenced by initILIAS().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Definition at line 448 of file class.ilInitialisation.php.
References $_SERVER, $cookie_path, $GLOBALS, ilAuthFactory\CONTEXT_HTTP, and ilAuthFactory\getContext().
Referenced by initClient().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
set session cookie params
Definition at line 483 of file class.ilInitialisation.php.
References $ilSetting, ilHTTPS\getInstance(), and IL_COOKIE_PATH.
Referenced by initClient().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
set session handler to db
Used in Soap/CAS
Definition at line 420 of file class.ilInitialisation.php.
References ilSession\_exists(), abortAndDie(), and defined.
Referenced by initClient().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Is current view the login form?
Definition at line 1409 of file class.ilInitialisation.php.
| 
 | staticprotected | 
Translate message if possible.
| string | $a_message_id | |
| array | $a_message_static | 
Definition at line 1432 of file class.ilInitialisation.php.
References $ilDB, $ilSetting, $ilUser, $lang, and $lng.
Referenced by handleMaintenanceMode(), and redirect().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Definition at line 828 of file class.ilInitialisation.php.