ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
ILIAS Initialisation Utility Class perform basic setup: init database handler, load configuration file, init user authentification & error handler, load object type definitions. More...
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 | initAvatar (\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 | 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 |
Static Private Member Functions | |
static | initBackgroundTasks (\ILIAS\DI\Container $c) |
static | initInjector (\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 36 of file class.ilInitialisation.php.
|
staticprotected |
Exit.
string | $a_message |
Definition at line 911 of file class.ilInitialisation.php.
References $GLOBALS.
Referenced by determineClient(), goToPublicSection(), handleMaintenanceMode(), initClientIniFile(), initSettings(), redirect(), and setSessionHandler().
|
static |
Try authentication.
This will basically validate the current session
Definition at line 1235 of file class.ilInitialisation.php.
|
staticprotected |
Block authentication based on current request.
Definition at line 1520 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().
|
staticprotected |
builds http path
Definition at line 289 of file class.ilInitialisation.php.
References $_SERVER, $https, $module, $path, GuzzleHttp\Psr7\$protocol, ilContext\CONTEXT_APACHE_SSO, defined, ilContext\getType(), ILIAS_MODULE, and ilUtil\removeTrailingPathSeparators().
Referenced by initSettings().
|
staticprotected |
This method determines the current client and sets the constant CLIENT_ID.
Definition at line 340 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, League\OAuth2\Client\Provider\$clientId, $ilIliasIniFile, abortAndDie(), defined, ilUtil\getClientIdByString(), ilUtil\setCookie(), and ilContext\supportsPersistentSessions().
Referenced by initClient().
|
staticprotected |
Extract current cmd from request.
Definition at line 1505 of file class.ilInitialisation.php.
Referenced by blockedAuthentication().
|
staticprotected |
go to login
int | $a_auth_stat |
Definition at line 790 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, $GLOBALS, ilLoggerFactory\getLogger(), redirect(), ilSession\SESSION_CLOSE_EXPIRE, ilSession\SESSION_CLOSE_LOGIN, and ilSession\setClosingContext().
|
static |
go to public section
int | $a_auth_stat |
Definition at line 735 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().
|
staticprotected |
Prepare developer tools.
Definition at line 922 of file class.ilInitialisation.php.
References defined.
Referenced by initClient().
|
static |
Set error reporting level.
Definition at line 1030 of file class.ilInitialisation.php.
Referenced by ilWebAccessCheckerDelivery\handleRequest(), and initCore().
|
staticprotected |
handle maintenance mode
Definition at line 462 of file class.ilInitialisation.php.
References abortAndDie(), ilContext\hasHTML(), redirect(), and translateMessage().
Referenced by initClient().
|
staticprotected |
This is a hack for authentication.
Since the phpCAS lib ships with its own compliance functions.
Definition at line 94 of file class.ilInitialisation.php.
References ilAuthFactory\CONTEXT_CAS, and ilAuthFactory\getContext().
Referenced by initILIAS().
|
staticprotected |
$ilAccess and $rbac... initialisation
Definition at line 843 of file class.ilInitialisation.php.
References ilRbacSystem\getInstance(), and initGlobal().
Referenced by initUser().
|
staticprotected |
\ILIAS\DI\Container | $c |
Definition at line 598 of file class.ilInitialisation.php.
Referenced by initClient().
|
staticprivate |
Definition at line 1740 of file class.ilInitialisation.php.
References $ilIliasIniFile, and $sync.
Referenced by initILIAS().
|
staticprotected |
Init client-based objects (level 1)
Definition at line 1084 of file class.ilInitialisation.php.
References $DIC, $GLOBALS, $https, determineClient(), handleDevMode(), handleMaintenanceMode(), initAvatar(), initClientIniFile(), initDatabase(), initGlobal(), initLocale(), initLog(), initMail(), initSettings(), setCookieConstants(), setSessionCookieParams(), setSessionHandler(), and ilContext\usesHTTP().
Referenced by initILIAS().
|
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 381 of file class.ilInitialisation.php.
References $_COOKIE, $ilIliasIniFile, abortAndDie(), initGlobal(), redirect(), ilUtil\setCookie(), and ilGlobalCache\setup().
Referenced by initClient().
|
staticprotected |
Init core objects (level 0)
Definition at line 1042 of file class.ilInitialisation.php.
References $_POST, $ilErr, ilSession\get(), handleErrorReporting(), initGlobal(), initIliasIniFile(), PEAR_ERROR_CALLBACK, removeUnsafeCharacters(), and requireCommonIncludes().
Referenced by initILIAS().
|
staticprotected |
initialise database object $ilDB
Definition at line 486 of file class.ilInitialisation.php.
References $ilDB, and initGlobal().
Referenced by initClient().
|
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 270 of file class.ilInitialisation.php.
References ilVirusScannerFactory\_getInstance().
Referenced by initILIAS().
|
staticprotected |
Initialize global instance.
string | $a_name | |
string | $a_class | |
string | $a_source_file |
Definition at line 890 of file class.ilInitialisation.php.
References $DIC, and $GLOBALS.
Referenced by initAccessHandling(), initClient(), initClientIniFile(), initCore(), initDatabase(), initHTML(), initIliasIniFile(), initLog(), initSettings(), initStyle(), initUser(), and requireCommonIncludes().
|
staticprotected |
init HTML output (level 3)
Definition at line 1392 of file class.ilInitialisation.php.
References $_GET, $GLOBALS, $ilUser, $tpl, ilUtil\getStyleSheetLocation(), ilContext\hasUser(), initGlobal(), initStyle(), initUIFramework(), and ilSession\set().
Referenced by initILIAS().
|
staticprotected |
\ILIAS\DI\Container | $container |
Definition at line 1320 of file class.ilInitialisation.php.
References $container.
Referenced by initILIAS().
|
static |
ilias initialisation
Definition at line 949 of file class.ilInitialisation.php.
References $GLOBALS, $tpl, ilLoggerFactory\getInstance(), ilUtil\getStyleSheetLocation(), ilContext\hasHTML(), ilContext\hasUser(), includePhp5Compliance(), initBackgroundTasks(), ilContext\initClient(), initClient(), initCore(), initFileUploadService(), initHTML(), initHTTPServices(), initInjector(), initSession(), initUser(), resumeUserSession(), ilECSTaskScheduler\start(), and ilContext\supportsPersistentSessions().
Referenced by ilSoapFunctions\__call(), ilSoapAdministration\getClientInfoXML(), ilSoapAdministration\getInstallationInfoXML(), ilNusoapUserAdministrationAdapter\handleSoapPlugins(), ilCalendarRemoteAccessHandler\initIlias(), ilWebAccessChecker\initILIAS(), and reinitILIAS().
|
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 110 of file class.ilInitialisation.php.
References $ilIliasIniFile, $tz, ilTimeZone\initDefaultTimeZone(), and initGlobal().
Referenced by initCore().
|
staticprivate |
Definition at line 1774 of file class.ilInitialisation.php.
Referenced by initILIAS().
|
staticprotected |
Init Locale.
Definition at line 701 of file class.ilInitialisation.php.
References $GLOBALS, $ilSetting, and $l.
Referenced by initClient().
|
staticprotected |
Init log instance.
Definition at line 873 of file class.ilInitialisation.php.
References $log, ilLoggerFactory\getRootLogger(), and initGlobal().
Referenced by initClient().
|
staticprotected |
\ILIAS\DI\Container | $c |
Definition at line 583 of file class.ilInitialisation.php.
Referenced by initClient().
|
staticprotected |
Init auth session.
Definition at line 1015 of file class.ilInitialisation.php.
References $GLOBALS, and ilAuthSession\getInstance().
Referenced by initILIAS().
|
staticprotected |
initialise $ilSettings object and define constants
Used in Soap
Definition at line 611 of file class.ilInitialisation.php.
References $ilSetting, abortAndDie(), buildHTTPPath(), initGlobal(), and ilContext\usesHTTP().
Referenced by initClient().
|
staticprotected |
provide $styleDefinition object
Definition at line 651 of file class.ilInitialisation.php.
References ilPluginAdmin\getPluginObject(), IL_COMP_SERVICE, and initGlobal().
Referenced by initHTML().
|
staticprotected |
Definition at line 1351 of file class.ilInitialisation.php.
Referenced by initHTML().
|
staticprotected |
Init user / authentification (level 2)
Definition at line 1188 of file class.ilInitialisation.php.
References $ilUser, initAccessHandling(), and initGlobal().
Referenced by initILIAS().
|
staticprotected |
Definition at line 50 of file class.ilInitialisation.php.
References recursivelyRemoveUnsafeCharacters().
Referenced by recursivelyRemoveUnsafeCharacters(), and removeUnsafeCharacters().
|
staticprotected |
Redirects to target url if context supports it.
string | $a_target | |
string | $a_message_id | |
array | $a_message_details |
Definition at line 1668 of file class.ilInitialisation.php.
References $message, abortAndDie(), defined, ilContext\hasHTML(), ilUtil\redirect(), ilContext\supportsRedirects(), translateMessage(), and ilContext\usesHTTP().
Referenced by goToLogin(), goToPublicSection(), handleMaintenanceMode(), and initClientIniFile().
|
static |
Definition at line 940 of file class.ilInitialisation.php.
References initILIAS().
Referenced by ilSoapAdministration\initIlias().
|
staticprotected |
Remove unsafe characters from GET.
Definition at line 41 of file class.ilInitialisation.php.
References $_GET, and recursivelyRemoveUnsafeCharacters().
Referenced by initCore().
|
staticprotected |
get common include code files
Definition at line 72 of file class.ilInitialisation.php.
References initGlobal(), and ilContext\usesTemplate().
Referenced by initCore().
|
static |
Resume an existing user session.
Definition at line 1206 of file class.ilInitialisation.php.
References $_SERVER, $GLOBALS, ilLoggerFactory\getLogger(), ilAuthUtils\handleForcedAuthentication(), and ilAuthUtils\isAuthenticationForced().
Referenced by initILIAS().
|
staticprotected |
Definition at line 526 of file class.ilInitialisation.php.
References $_SERVER, $cookie_path, $GLOBALS, ilAuthFactory\CONTEXT_HTTP, and ilAuthFactory\getContext().
Referenced by initClient().
|
staticprotected |
set session cookie params
Definition at line 558 of file class.ilInitialisation.php.
References $ilSetting, defined, ilHTTPS\getInstance(), and IL_COOKIE_PATH.
Referenced by initClient().
|
static |
set session handler to db
Used in Soap/CAS
Definition at line 502 of file class.ilInitialisation.php.
References ilSession\_exists(), abortAndDie(), and defined.
Referenced by initClient().
|
staticprotected |
Is current view the login form?
Definition at line 1601 of file class.ilInitialisation.php.
|
staticprotected |
Translate message if possible.
string | $a_message_id | |
array | $a_message_static |
Definition at line 1622 of file class.ilInitialisation.php.
References $ilDB, $ilSetting, $ilUser, $lang, $lng, and $message.
Referenced by handleMaintenanceMode(), and redirect().
|
staticprotected |
Definition at line 937 of file class.ilInitialisation.php.