| ILIAS
    release_5-4 Revision v5.4.26-12-gabc799a52e6
    | 
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 | initFileUploadService (\ILIAS\DI\Container $dic) | 
| Initializes the file upload service.  More... | |
| 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 | initMail (\ILIAS\DI\Container $c) | 
| static | initCustomObjectIcons (\ILIAS\DI\Container $c) | 
| static | initAvatar (\ILIAS\DI\Container $c) | 
| static | initTermsOfService (\ILIAS\DI\Container $c) | 
| 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 auth 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 | initHTTPServices (\ILIAS\DI\Container $container) | 
| static | initGlobalScreen (\ILIAS\DI\Container $c) | 
| init the ILIAS UI framework.  More... | |
| static | initUIFramework (\ILIAS\DI\Container $c) | 
| 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 | 
| Static Private Member Functions | |
| static | initBackgroundTasks (\ILIAS\DI\Container $c) | 
| static | initInjector (\ILIAS\DI\Container $c) | 
| static | initKioskMode (\ILIAS\DI\Container $c) | 
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 37 of file class.ilInitialisation.php.
| 
 | staticprotected | 
Exit.
| string | $a_message | 
Definition at line 958 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 1285 of file class.ilInitialisation.php.
| 
 | staticprotected | 
Block authentication based on current request.
Definition at line 1707 of file class.ilInitialisation.php.
References $_GET, ilContext\CONTEXT_APACHE_SSO, ilContext\CONTEXT_LTI_PROVIDER, ilContext\CONTEXT_SAML, 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 292 of file class.ilInitialisation.php.
References $_SERVER, $https, $iliasHttpPath, $module, $path, GuzzleHttp\Psr7\$protocol, ilContext\CONTEXT_APACHE_SSO, ilContext\CONTEXT_SAML, 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 349 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, PHPMailer\PHPMailer\$clientId, $ilIliasIniFile, abortAndDie(), ilUtil\getClientIdByString(), ilUtil\setCookie(), 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 1692 of file class.ilInitialisation.php.
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 837 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, $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 782 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 969 of file class.ilInitialisation.php.
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 1078 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 471 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 95 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 890 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 | 
| \ILIAS\DI\Container | $c | 
Definition at line 623 of file class.ilInitialisation.php.
References $c.
Referenced by initClient().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprivate | 
Definition at line 1935 of file class.ilInitialisation.php.
References $c, $ilIliasIniFile, $sync, and Sabre\Event\Loop\instance().
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 | 
Init client-based objects (level 1)
Definition at line 1132 of file class.ilInitialisation.php.
References $DIC, $GLOBALS, $https, $tree, determineClient(), handleDevMode(), handleMaintenanceMode(), initAvatar(), initClientIniFile(), initCustomObjectIcons(), initDatabase(), initGlobal(), initLocale(), initLog(), initMail(), initSettings(), initTermsOfService(), 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 390 of file class.ilInitialisation.php.
References $_COOKIE, $c, $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 1090 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 | 
| \ILIAS\DI\Container | $c | 
Definition at line 608 of file class.ilInitialisation.php.
References $c.
Referenced by initClient().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
initialise database object $ilDB
Definition at line 495 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:| 
 | static | 
Initializes the file upload service.
This service requires the http and filesystem service.
| \ILIAS\DI\Container | $dic | The dependency container which should be used to load the file upload service. | 
Definition at line 271 of file class.ilInitialisation.php.
References $c, and ilVirusScannerFactory\_getInstance().
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 | 
Initialize global instance.
| string | $a_name | |
| string | $a_class | |
| string | $a_source_file | 
Definition at line 937 of file class.ilInitialisation.php.
References $c, $DIC, and $GLOBALS.
Referenced by initAccessHandling(), initClient(), initClientIniFile(), initCore(), initDatabase(), initHTML(), initIliasIniFile(), initLog(), initSettings(), initStyle(), initUser(), and requireCommonIncludes().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Definition at line 1404 of file class.ilInitialisation.php.
References $c.
Referenced by initHTML().
 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 1577 of file class.ilInitialisation.php.
References $_GET, $GLOBALS, $ilUser, $tpl, ilUtil\getStyleSheetLocation(), ilContext\hasUser(), initGlobal(), initGlobalScreen(), initKioskMode(), 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:| 
 | staticprotected | 
| \ILIAS\DI\Container | $container | 
Definition at line 1373 of file class.ilInitialisation.php.
References $c, and $container.
Referenced by initILIAS().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
ilias initialisation
Definition at line 996 of file class.ilInitialisation.php.
References $c, $GLOBALS, $tpl, ilLoggerFactory\getInstance(), ilUtil\getStyleSheetLocation(), ilContext\hasHTML(), ilContext\hasUser(), includePhp5Compliance(), initBackgroundTasks(), ilContext\initClient(), initClient(), initCore(), initFileUploadService(), initHTML(), initHTTPServices(), initInjector(), initKioskMode(), initSession(), initUser(), resumeUserSession(), ilECSTaskScheduler\start(), and ilContext\supportsPersistentSessions().
Referenced by ilSoapFunctions\__call(), ilSoapAdministration\getClientInfoXML(), ilSoapAdministration\getInstallationInfoXML(), ilNusoapUserAdministrationAdapter\handleSoapPlugins(), ilCalendarRemoteAccessHandler\initIlias(), ilWebAccessChecker\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 111 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:| 
 | staticprivate | 
Definition at line 1969 of file class.ilInitialisation.php.
References $c.
Referenced by initILIAS().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprivate | 
Definition at line 1980 of file class.ilInitialisation.php.
References $c.
Referenced by initHTML(), and initILIAS().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Init Locale.
Definition at line 748 of file class.ilInitialisation.php.
References $c, $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 920 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 | 
| \ILIAS\DI\Container | $c | 
Definition at line 592 of file class.ilInitialisation.php.
References $c.
Referenced by initClient().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Init auth session.
Definition at line 1063 of file class.ilInitialisation.php.
References $c, $GLOBALS, and ilAuthSession\getInstance().
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 658 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 698 of file class.ilInitialisation.php.
References $DIC, 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 | 
| \ILIAS\DI\Container | $c | 
Definition at line 633 of file class.ilInitialisation.php.
References $c, and ActiveRecord\orderBy().
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 | 
Definition at line 1411 of file class.ilInitialisation.php.
References $c.
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 1238 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 51 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 1855 of file class.ilInitialisation.php.
References $GLOBALS, $message, abortAndDie(), ilUtil\appendUrlParameterString(), ilContext\hasHTML(), ILIAS\FileDelivery\http(), ilUtil\redirect(), ilUtil\stripSlashes(), 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 987 of file class.ilInitialisation.php.
References initILIAS().
Referenced by ilSoapAdministration\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 | 
Remove unsafe characters from GET.
Definition at line 42 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 73 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 1256 of file class.ilInitialisation.php.
References $_SERVER, $GLOBALS, ilLoggerFactory\getLogger(), ilAuthUtils\handleForcedAuthentication(), and ilAuthUtils\isAuthenticationForced().
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 535 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 567 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 511 of file class.ilInitialisation.php.
References ilSession\_exists(), and abortAndDie().
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 1788 of file class.ilInitialisation.php.
| 
 | staticprotected | 
Translate message if possible.
| string | $a_message_id | |
| array | $a_message_static | 
Definition at line 1809 of file class.ilInitialisation.php.
References $ilDB, $ilSetting, $ilUser, $lang, $lng, and $message.
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 984 of file class.ilInitialisation.php.