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...
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... 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.
|
static |
Try authentication.
This will basically validate the current session
Definition at line 1108 of file class.ilInitialisation.php.
References $_SERVER, $GLOBALS, $ilErr, $ilSetting, $ilUser, ilContext\CONTEXT_SOAP, ilContext\CONTEXT_WAC, ilLoggerFactory\getLogger(), and ilContext\getType().
|
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, ilLoggerFactory\getLogger(), and ilContext\getType().
|
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().
|
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, defined, ilUtil\setCookie(), ilUtil\stripSlashes(), and ilContext\supportsPersistentSessions().
|
staticprotected |
Extract current cmd from request.
Definition at line 1316 of file class.ilInitialisation.php.
References $cmd.
|
staticprotected |
go to login
int | $a_auth_stat |
Definition at line 691 of file class.ilInitialisation.php.
References $_COOKIE, $GLOBALS, array, ilLoggerFactory\getLogger(), ilSession\SESSION_CLOSE_EXPIRE, ilSession\SESSION_CLOSE_LOGIN, and ilSession\setClosingContext().
|
static |
go to public section
int | $a_auth_stat |
Definition at line 631 of file class.ilInitialisation.php.
References $_GET, $_SERVER, $GLOBALS, ilSession\SESSION_CLOSE_EXPIRE, ilSession\SESSION_CLOSE_PUBLIC, and ilSession\setClosingContext().
Referenced by ilAuthUtils\handleForcedAuthentication(), ilStartUpGUI\processIndexPHP(), and redirect().
|
staticprotected |
Prepare developer tools.
Definition at line 811 of file class.ilInitialisation.php.
References defined.
|
static |
Set error reporting level.
Definition at line 920 of file class.ilInitialisation.php.
Referenced by ilWebAccessCheckerDelivery\handleRequest().
|
staticprotected |
handle maintenance mode
Definition at line 376 of file class.ilInitialisation.php.
References array, and ilContext\hasHTML().
|
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().
|
staticprotected |
$ilAccess and $rbac...
initialisation
Definition at line 737 of file class.ilInitialisation.php.
References ilRbacSystem\getInstance().
|
staticprotected |
Init client-based objects (level 1)
Definition at line 972 of file class.ilInitialisation.php.
References $GLOBALS, $https, and ilContext\usesHTTP().
|
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, array, ilUtil\setCookie(), and ilGlobalCache\setup().
|
staticprotected |
Init core objects (level 0)
Definition at line 932 of file class.ilInitialisation.php.
References $_POST, $ilErr, array, ilSession\get(), and PEAR_ERROR_CALLBACK.
|
staticprotected |
initialise database object $ilDB
Definition at line 404 of file class.ilInitialisation.php.
References $ilDB.
|
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.
|
staticprotected |
init HTML output (level 3)
Definition at line 1230 of file class.ilInitialisation.php.
References $_GET, $GLOBALS, $ilUser, $tpl, ilUtil\getStyleSheetLocation(), ilContext\hasUser(), and ilSession\set().
|
static |
ilias initialisation
Definition at line 839 of file class.ilInitialisation.php.
References $GLOBALS, $tpl, ilLoggerFactory\getInstance(), ilUtil\getStyleSheetLocation(), ilContext\hasHTML(), ilContext\hasUser(), ilContext\initClient(), ilECSTaskScheduler\start(), and ilContext\supportsPersistentSessions().
Referenced by ilSoapAdministration\getClientInfoXML(), ilSoapAdministration\getInstallationInfoXML(), ilCalendarRemoteAccessHandler\initIlias(), ilWebAccessChecker\initILIAS(), and ilSoapAdministration\initIlias().
|
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, and ilTimeZone\initDefaultTimeZone().
|
staticprotected |
Init Locale.
Definition at line 592 of file class.ilInitialisation.php.
References $GLOBALS, $ilSetting, $l, and array.
|
staticprotected |
Init log instance.
Definition at line 758 of file class.ilInitialisation.php.
References $log, and ilLoggerFactory\getRootLogger().
|
staticprotected |
Init session.
Definition at line 908 of file class.ilInitialisation.php.
References $GLOBALS, and ilAuthSession\getInstance().
|
staticprotected |
initialise $ilSettings object and define constants
Used in Soap
Definition at line 502 of file class.ilInitialisation.php.
References $ilSetting, and ilContext\usesHTTP().
|
staticprotected |
provide $styleDefinition object
Definition at line 541 of file class.ilInitialisation.php.
References $GLOBALS, $ilUser, array, ilLoggerFactory\getInstance(), ilPluginAdmin\getPluginObject(), and IL_COMP_SERVICE.
|
staticprotected |
init the ILIAS UI framework.
Definition at line 1201 of file class.ilInitialisation.php.
|
staticprotected |
Init user / authentification (level 2)
Definition at line 1058 of file class.ilInitialisation.php.
References $ilUser.
|
staticprotected |
|
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 $_GET, $ilUser, array, defined, ilUserUtil\getStartingPointAsUrl(), goToPublicSection(), ilContext\hasHTML(), ilUtil\redirect(), ilContext\supportsRedirects(), and ilContext\usesHTTP().
|
static |
Definition at line 831 of file class.ilInitialisation.php.
Referenced by ilWebAccessChecker\setHeader().
|
staticprotected |
Remove unsafe characters from GET.
Definition at line 34 of file class.ilInitialisation.php.
References $_GET.
|
staticprotected |
get common include code files
Definition at line 64 of file class.ilInitialisation.php.
References ilContext\usesTemplate().
|
static |
Resume an existing user session.
Definition at line 1076 of file class.ilInitialisation.php.
References $_SERVER, $GLOBALS, ilLoggerFactory\getLogger(), and ilAuthUtils\handleForcedAuthentication().
|
staticprotected |
Definition at line 448 of file class.ilInitialisation.php.
References $_SERVER, $cookie_path, $GLOBALS, ilAuthFactory\CONTEXT_HTTP, and ilAuthFactory\getContext().
|
staticprotected |
set session cookie params
Definition at line 483 of file class.ilInitialisation.php.
References $ilSetting, ilHTTPS\getInstance(), and IL_COOKIE_PATH.
|
static |
set session handler to db
Used in Soap/CAS
Definition at line 420 of file class.ilInitialisation.php.
References ilSession\_exists(), and defined.
|
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, $lng, and string.
|
staticprotected |
Definition at line 828 of file class.ilInitialisation.php.