|
ILIAS
release_8 Revision v8.24
|
ILIAS Initialisation Utility Class perform basic setup: init database handler, load configuration file, init user authentification & error handler, load object type definitions. More...
Inheritance 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 Used in Soap/CAS More... | |
| static | initUserAccount () |
| Init user with current account id. More... | |
| static | goToPublicSection () |
| go to public section More... | |
| static | reinitILIAS () |
| static | reInitUser () |
| static | initILIAS () |
| ilias initialisation More... | |
| static | handleErrorReporting () |
| Set error reporting level. More... | |
| static | resumeUserSession () |
| Resume an existing user session. More... | |
| static | initUIFramework (\ILIAS\DI\Container $c) |
| init the ILIAS UI framework. More... | |
| static | redirectToStartingPage (string $target='') |
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 | initResourceStorage () |
| 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 | initCron (\ILIAS\DI\Container $c) |
| static | initCustomObjectIcons (\ILIAS\DI\Container $c) |
| static | initAvatar (\ILIAS\DI\Container $c) |
| static | initTermsOfService (\ILIAS\DI\Container $c) |
| static | initAccessibilityControlConcept (\ILIAS\DI\Container $c) |
| static | initSettings () |
| initialise $ilSettings object and define constants Used in Soap 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 (string $a_name, $a_class, ?string $a_source_file=null, ?bool $destroy_existing=false) |
| static | abortAndDie (string $a_message) |
| 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 | handleAuthenticationFail () |
| static | initHTTPServices (\ILIAS\DI\Container $container) |
| static | initRefinery (\ILIAS\DI\Container $container) |
| static | initComponentService (\ILIAS\DI\Container $container) |
| static | initHTML () |
| init HTML output (level 3) More... | |
| static | getCurrentCmd () |
| static | blockedAuthentication (string $a_current_script) |
| Block authentication based on current request. More... | |
| static | translateMessage (string $a_message_id, array $a_message_static=null) |
| Translate message if possible. More... | |
| static | redirect (string $a_target, string $a_message_id='', array $a_message_static=null) |
| Redirects to target url if context supports it. More... | |
Static Protected Attributes | |
| static bool | $already_initialized = false |
Static Private Member Functions | |
| static | getClientIdTransformation () |
| Refinery is not initialized early enough to provide a transformation to be used with the \ILIAS\HTTP implementation to retrieve the parameters. More... | |
| static | setClientIdCookie () |
| static | initGlobalScreen (\ILIAS\DI\Container $c) |
| 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 71 of file class.ilInitialisation.php.
|
staticprotected |
Definition at line 1183 of file class.ilInitialisation.php.
References $GLOBALS.
Referenced by determineClient(), goToPublicSection(), handleMaintenanceMode(), initClientIniFile(), initSettings(), initUserAccount(), and setSessionHandler().
Here is the caller graph for this function:
|
staticprotected |
Block authentication based on current request.
Definition at line 1738 of file class.ilInitialisation.php.
References $_GET, $DIC, ilContext\CONTEXT_APACHE_SSO, ilContext\CONTEXT_LTI_PROVIDER, ilContext\CONTEXT_SAML, ilContext\CONTEXT_SHIBBOLETH, ilContext\CONTEXT_WAC, ilContext\CONTEXT_WEBDAV, ilLoggerFactory\getLogger(), and ilContext\getType().
Here is the call graph for this function:
|
staticprotected |
builds http path
Definition at line 379 of file class.ilInitialisation.php.
References $_SERVER, $DIC, Vendor\Package\$f, $path, ILIAS_MODULE, ilContext\modifyHttpPath(), and ilFileUtils\removeTrailingPathSeparators().
Referenced by initSettings().
Here is the call 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 436 of file class.ilInitialisation.php.
References $DIC, and abortAndDie().
Here is the call graph for this function:
|
staticprivate |
Refinery is not initialized early enough to provide a transformation to be used with the \ILIAS\HTTP implementation to retrieve the parameters.
Instead, this implementation here will be used.
@inheritDoc
@inheritDoc
@inheritDoc
Definition at line 487 of file class.ilInitialisation.php.
References ILIAS\Refinery\__invoke(), ILIAS\Refinery\applyTo(), and ILIAS\Data\Result\then().
Here is the call graph for this function:
|
staticprotected |
Definition at line 1723 of file class.ilInitialisation.php.
References $_GET.
|
staticprotected |
go to login
Definition at line 1043 of file class.ilInitialisation.php.
References $client_id, $DIC, ilLoggerFactory\getLogger(), redirect(), ilSession\SESSION_CLOSE_EXPIRE, ilSession\SESSION_CLOSE_LOGIN, and ilSession\setClosingContext().
Here is the call graph for this function:
|
static |
go to public section
Definition at line 989 of file class.ilInitialisation.php.
References $_GET, $_SERVER, $DIC, $GLOBALS, abortAndDie(), ANONYMOUS_USER_ID, initUserAccount(), redirect(), ROOT_FOLDER_ID, 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 caller graph for this function:
|
staticprotected |
Definition at line 1517 of file class.ilInitialisation.php.
References $_SERVER, $DIC, ilObjUser\_isAnonymous(), ilContext\CONTEXT_SOAP, ilContext\CONTEXT_WAC, ilPublicSectionSettings\getInstance(), ilLoggerFactory\getLogger(), and ilContext\getType().
Here is the call graph for this function:
|
staticprotected |
Prepare developer tools.
Definition at line 1195 of file class.ilInitialisation.php.
|
static |
Set error reporting level.
Definition at line 1296 of file class.ilInitialisation.php.
Referenced by ilWebAccessCheckerDelivery\handleRequest().
Here is the caller graph for this function:
|
staticprotected |
handle maintenance mode
Definition at line 621 of file class.ilInitialisation.php.
References abortAndDie(), ilContext\hasHTML(), redirect(), and translateMessage().
Here is the call graph for this function:
|
staticprotected |
This is a hack for authentication.
Since the phpCAS lib ships with its own compliance functions.
@noRector
@noRector
Definition at line 123 of file class.ilInitialisation.php.
References ilAuthFactory\CONTEXT_CAS, and ilAuthFactory\getContext().
Here is the call graph for this function:
|
staticprotected |
$ilAccess and $rbac... initialisation
Definition at line 1117 of file class.ilInitialisation.php.
References ilRbacSystem\getInstance(), and initGlobal().
Here is the call graph for this function:
|
staticprotected |
Definition at line 846 of file class.ilInitialisation.php.
References $c, and ActiveRecord\orderBy().
Here is the call graph for this function:
|
staticprotected |
|
staticprivate |
Definition at line 1966 of file class.ilInitialisation.php.
References $c, and $ilIliasIniFile.
|
staticprotected |
Init client-based objects (level 1)
Definition at line 1347 of file class.ilInitialisation.php.
References $DIC, $GLOBALS, $https, CLIENT_ID, ROOT_FOLDER_ID, and ilContext\usesHTTP().
Here is the call 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.
Reimplemented in XapiProxy\ilInitialisation.
Definition at line 534 of file class.ilInitialisation.php.
References $ilIliasIniFile, abortAndDie(), CLIENT_ID, CLIENT_WEB_DIR, ILIAS_DATA_DIR, ILIAS_WEB_DIR, initGlobal(), redirect(), ilGlobalCache\setup(), and ilDBConstants\TYPE_INNODB.
Here is the call graph for this function:
|
staticprotected |
Definition at line 1643 of file class.ilInitialisation.php.
References $container.
|
staticprotected |
Init core objects (level 0)
Definition at line 1308 of file class.ilInitialisation.php.
References $GLOBALS, $ilErr, ILIAS_VERSION_NUMERIC, PEAR_ERROR_CALLBACK, and PEAR\setErrorHandling().
Here is the call graph for this function:
|
staticprotected |
Definition at line 765 of file class.ilInitialisation.php.
References $c.
|
staticprotected |
| \ILIAS\DI\Container | $c |
Definition at line 791 of file class.ilInitialisation.php.
References $c.
|
staticprotected |
initialise database object $ilDB
Reimplemented in XapiProxy\ilInitialisation.
Definition at line 646 of file class.ilInitialisation.php.
References $ilDB, ilDBWrapperFactory\getWrapper(), and initGlobal().
Here is the call 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 341 of file class.ilInitialisation.php.
References $c, $dic, and ilVirusScannerFactory\_getInstance().
Here is the call graph for this function:
|
staticprotected |
| object | string | $a_class |
Reimplemented in XapiProxy\ilInitialisation.
Definition at line 1159 of file class.ilInitialisation.php.
References $DIC, and $GLOBALS.
Referenced by initAccessHandling(), initClientIniFile(), initDatabase(), initIliasIniFile(), initLog(), initSettings(), initStyle(), and requireCommonIncludes().
Here is the caller graph for this function:
|
staticprivate |
| \ILIAS\DI\Container | $c |
Definition at line 1569 of file class.ilInitialisation.php.
References $c, and ILIAS_VERSION_NUMERIC.
|
staticprotected |
init HTML output (level 3)
Definition at line 1652 of file class.ilInitialisation.php.
References $_GET, $DIC, $GLOBALS, $ilUser, $tpl, ilContext\hasUser(), ILIAS\Repository\int(), and ilSession\set().
Here is the call graph for this function:
|
staticprotected |
| \ILIAS\DI\Container | $container |
Definition at line 1560 of file class.ilInitialisation.php.
References $container.
|
static |
ilias initialisation
Definition at line 1225 of file class.ilInitialisation.php.
References $c, $GLOBALS, ilLoggerFactory\getInstance(), ilContext\hasHTML(), ilContext\hasUser(), ilContext\initClient(), and ilContext\supportsPersistentSessions().
Referenced by ilSoapFunctions\__call(), ILIAS\GlobalScreen\Client\CallbackHandler\__construct(), ILIAS\GlobalScreen\Client\ModeToggle\__construct(), ILIAS\GlobalScreen\Client\ItemState\__construct(), ilNusoapUserAdministrationAdapter\handleSoapPlugins(), ilCalendarRemoteAccessHandler\initIlias(), ilWebAccessChecker\initILIAS(), XapiProxy\DataService\initIlias(), ilObjCloudModuleMigration\prepare(), ILIAS\GlobalScreen\Client\ContentRenderer\run(), and ilFixMissingQuestionDuplicationMigration\step().
Here is the call 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.
Reimplemented in XapiProxy\ilInitialisation.
Definition at line 139 of file class.ilInitialisation.php.
References $ilIliasIniFile, ilTimeZone\initDefaultTimeZone(), and initGlobal().
Here is the call graph for this function:
|
staticprivate |
Definition at line 1999 of file class.ilInitialisation.php.
References $c.
|
staticprivate |
Definition at line 2010 of file class.ilInitialisation.php.
References $c.
|
staticprotected |
Init Locale.
Definition at line 964 of file class.ilInitialisation.php.
References $ilSetting.
|
staticprotected |
Init log instance.
Reimplemented in XapiProxy\ilInitialisation.
Definition at line 1147 of file class.ilInitialisation.php.
References $log, ilLoggerFactory\getRootLogger(), and initGlobal().
Here is the call graph for this function:
|
staticprotected |
Definition at line 752 of file class.ilInitialisation.php.
References $c.
|
staticprotected |
| \ILIAS\DI\Container | $container |
Definition at line 1610 of file class.ilInitialisation.php.
References $container.
|
staticprotected |
Definition at line 227 of file class.ilInitialisation.php.
References $DIC.
|
staticprotected |
Init auth session.
Definition at line 1278 of file class.ilInitialisation.php.
References $c, $GLOBALS, and ilAuthSession\getInstance().
Here is the call graph for this function:
|
staticprotected |
initialise $ilSettings object and define constants Used in Soap
Definition at line 870 of file class.ilInitialisation.php.
References $ilSetting, abortAndDie(), buildHTTPPath(), initGlobal(), and ilContext\usesHTTP().
Here is the call graph for this function:
|
staticprotected |
provide $styleDefinition object
Definition at line 910 of file class.ilInitialisation.php.
References $DIC, and initGlobal().
Here is the call graph for this function:
|
staticprotected |
Definition at line 809 of file class.ilInitialisation.php.
References $c, ilCountry\getCountryCodes(), and ActiveRecord\orderBy().
Here is the call graph for this function:
|
static |
Definition at line 1585 of file class.ilInitialisation.php.
References $c, ILIAS\LTI\ToolProvider\$key, and XapiProxy\$plugin.
|
staticprotected |
Init user / authentification (level 2)
Definition at line 1451 of file class.ilInitialisation.php.
References $ilUser.
|
static |
Init user with current account id.
Definition at line 932 of file class.ilInitialisation.php.
References $DIC, $GLOBALS, abortAndDie(), ilLoggerFactory\getInstance(), and ilOnlineTracking\updateAccess().
Referenced by goToPublicSection(), ilAuthFrontend\handleAuthenticationSuccess(), and ilCalendarRemoteAccessHandler\initUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
| array | string | $var |
Definition at line 89 of file class.ilInitialisation.php.
References recursivelyRemoveUnsafeCharacters().
Referenced by recursivelyRemoveUnsafeCharacters(), and removeUnsafeCharacters().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Redirects to target url if context supports it.
Definition at line 1878 of file class.ilInitialisation.php.
Referenced by goToLogin(), goToPublicSection(), handleMaintenanceMode(), and initClientIniFile().
Here is the caller graph for this function:
|
static |
Definition at line 1935 of file class.ilInitialisation.php.
References $DIC, ANONYMOUS_USER_ID, and ilLoggerFactory\getLogger().
Referenced by ilPersonalProfileGUI\cancelWithdrawal(), ilStartUpGUI\doApacheAuthentication(), ilStartUpGUI\doCasAuthentication(), ilStartUpGUI\doLTIAuthentication(), ilStartUpGUI\doMigration(), ilStartUpGUI\doMigrationNewAccount(), ilStartUpGUI\doOpenIdConnectAuthentication(), ilStartUpGUI\doSamlAuthentication(), ilStartUpGUI\doShibbolethAuthentication(), ilStartUpGUI\doStandardAuthentication(), ilStartUpGUI\processIndexPHP(), and ilAuthFrontendCredentialsSoap\tryAuthenticationOnLoginPage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1204 of file class.ilInitialisation.php.
Referenced by ilSoapAdministration\initIlias().
Here is the caller graph for this function:
|
static |
Definition at line 1210 of file class.ilInitialisation.php.
References ilContext\hasUser(), ilContext\initClient(), and ilContext\supportsPersistentSessions().
Referenced by ilSoapAdministration\reInitUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Remove unsafe characters from GET.
Definition at line 76 of file class.ilInitialisation.php.
References $_GET, and recursivelyRemoveUnsafeCharacters().
Here is the call graph for this function:
|
staticprotected |
get common include code files
@noRector
Definition at line 111 of file class.ilInitialisation.php.
References initGlobal().
Here is the call graph for this function:
|
static |
Resume an existing user session.
Definition at line 1470 of file class.ilInitialisation.php.
References $_COOKIE, $_SERVER, $DIC, $GLOBALS, ilSession\_destroy(), ILIAS\Survey\Mode\getId(), ilLoggerFactory\getLogger(), ilAuthUtils\handleForcedAuthentication(), ilAuthUtils\isAuthenticationForced(), and ilSession\SESSION_CLOSE_EXPIRE.
Here is the call graph for this function:
|
staticprivate |
Definition at line 710 of file class.ilInitialisation.php.
References CLIENT_ID, ilUtil\setCookie(), and ilContext\supportsPersistentSessions().
Here is the call graph for this function:
|
staticprotected |
Definition at line 679 of file class.ilInitialisation.php.
References $_SERVER, $cookie_path, $GLOBALS, ilAuthFactory\CONTEXT_HTTP, and ilAuthFactory\getContext().
Here is the call graph for this function:
|
staticprotected |
set session cookie params
Definition at line 722 of file class.ilInitialisation.php.
References $DIC, $ilSetting, and IL_COOKIE_PATH.
|
static |
set session handler to db Used in Soap/CAS
Definition at line 660 of file class.ilInitialisation.php.
References ilSession\_exists(), and abortAndDie().
Here is the call graph for this function:
|
staticprotected |
Translate message if possible.
Definition at line 1838 of file class.ilInitialisation.php.
References $ilDB, $ilSetting, $ilUser, $lang, $lng, and $message.
Referenced by handleMaintenanceMode().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 1202 of file class.ilInitialisation.php.