|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
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 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 | applyPluginManipulationsToUiFramework (\ILIAS\DI\Container $c) |
| 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 | initIliasIniFile () |
| This method provides a global instance of class ilIniFile for the ilias.ini.php file in variable $ilIliasIniFile. More... | |
| static | initResourceStorage () |
| static | initUploadPolicies (\ILIAS\DI\Container $dic) |
| static | buildHTTPPath () |
| 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 | initGlobalCache () |
| static | setCookieConstants () |
| static | setSessionCookieParams () |
| set session cookie params More... | |
| static | initCron (\ILIAS\DI\Container $c) |
| static | initCustomObjectIcons (\ILIAS\DI\Container $c) |
| static | initAvatar (\ILIAS\DI\Container $c) |
| static | initLegalDocuments (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 | initComponentService (\ILIAS\DI\Container $container) |
| static | initHTML () |
| init HTML output (level 3) More... | |
| 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) |
| static | initLearningObjectMetadata (\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 53 of file class.ilInitialisation.php.
|
staticprotected |
Definition at line 1104 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:
|
static |
Definition at line 1504 of file class.ilInitialisation.php.
References $c, and XapiProxy\$plugin.
|
staticprotected |
Block authentication based on current request.
Definition at line 1635 of file class.ilInitialisation.php.
References $_GET, $DIC, ANONYMOUS_USER_ID, 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 |
Definition at line 360 of file class.ilInitialisation.php.
References $_SERVER, and $DIC.
Referenced by initSettings().
Here is the caller graph for this function:
|
staticprotected |
This method determines the current client and sets the constant CLIENT_ID.
Definition at line 380 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, $DIC, abortAndDie(), ilUtil\setCookie(), and ilContext\supportsPersistentSessions().
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 446 of file class.ilInitialisation.php.
References ILIAS\Refinery\__invoke(), ILIAS\Refinery\applyTo(), ILIAS\Data\Result\then(), and ILIAS\Refinery\transform().
Here is the call graph for this function:
|
staticprotected |
go to login
Definition at line 963 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 909 of file class.ilInitialisation.php.
References $_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 1432 of file class.ilInitialisation.php.
References $_SERVER, $DIC, ilObjUser\_isAnonymous(), ANONYMOUS_USER_ID, ilContext\CONTEXT_SOAP, ilContext\CONTEXT_WAC, ilPublicSectionSettings\getInstance(), ilLoggerFactory\getLogger(), ilContext\getType(), and ROOT_FOLDER_ID.
Here is the call graph for this function:
|
staticprotected |
Prepare developer tools.
Definition at line 1116 of file class.ilInitialisation.php.
|
static |
Set error reporting level.
Definition at line 1212 of file class.ilInitialisation.php.
Referenced by ilWebAccessCheckerDelivery\handleRequest().
Here is the caller graph for this function:
|
staticprotected |
handle maintenance mode
Definition at line 574 of file class.ilInitialisation.php.
References abortAndDie(), ilContext\hasHTML(), redirect(), and translateMessage().
Here is the call graph for this function:
|
staticprotected |
$ilAccess and $rbac... initialisation
Definition at line 1038 of file class.ilInitialisation.php.
References ilRbacSystem\getInstance(), and initGlobal().
Here is the call graph for this function:
|
staticprotected |
Definition at line 766 of file class.ilInitialisation.php.
References $c, and ActiveRecord\orderBy().
Here is the call graph for this function:
|
staticprotected |
|
staticprivate |
Definition at line 1888 of file class.ilInitialisation.php.
References $c, and $ilIliasIniFile.
|
staticprotected |
Init client-based objects (level 1)
Definition at line 1253 of file class.ilInitialisation.php.
References $DIC, $GLOBALS, CLIENT_ID, init(), 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 493 of file class.ilInitialisation.php.
References $ilIliasIniFile, abortAndDie(), CLIENT_ID, CLIENT_WEB_DIR, ILIAS_DATA_DIR, ILIAS_WEB_DIR, initGlobal(), redirect(), and ilDBConstants\TYPE_INNODB.
Here is the call graph for this function:
|
staticprotected |
Definition at line 1548 of file class.ilInitialisation.php.
References $container.
|
staticprotected |
Init core objects (level 0)
Definition at line 1224 of file class.ilInitialisation.php.
References $GLOBALS, $ilErr, and ILIAS_VERSION_NUMERIC.
|
staticprotected |
Definition at line 717 of file class.ilInitialisation.php.
References $c.
|
staticprotected |
| \ILIAS\DI\Container | $c |
Definition at line 743 of file class.ilInitialisation.php.
References $c.
|
staticprotected |
initialise database object $ilDB
Reimplemented in XapiProxy\ilInitialisation.
Definition at line 599 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 310 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 1080 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:
|
staticprotected |
|
staticprivate |
| \ILIAS\DI\Container | $c |
Definition at line 1487 of file class.ilInitialisation.php.
References $c, and ILIAS_VERSION_NUMERIC.
|
staticprotected |
init HTML output (level 3)
Definition at line 1557 of file class.ilInitialisation.php.
References $_GET, $DIC, $GLOBALS, ilContext\hasUser(), and ILIAS\Repository\int().
Here is the call graph for this function:
|
staticprotected |
| \ILIAS\DI\Container | $container |
Definition at line 1476 of file class.ilInitialisation.php.
References $container, and ILIAS\StaticURL\Init\init().
Here is the call graph for this function:
|
static |
ilias initialisation
Definition at line 1144 of file class.ilInitialisation.php.
References $c, $GLOBALS, ilLoggerFactory\getInstance(), ilContext\hasHTML(), ilContext\hasUser(), init(), ilContext\initClient(), and ilContext\supportsPersistentSessions().
Referenced by ilSoapFunctions\__call(), ILIAS\GlobalScreen\Client\ModeToggle\__construct(), ILIAS\GlobalScreen\Client\ItemState\__construct(), ILIAS\Cron\CLI\StartUp\__construct(), ILIAS\Init\AllModernComponents\enter(), ilSoapAdministration\getClientInfoXML(), ilSoapAdministration\getInstallationInfoXML(), ilSoapSCORMAdministration\getSCORMCompletionStatus(), ilNusoapUserAdministrationAdapter\handleSoapPlugins(), ilCalendarRemoteAccessHandler\initIlias(), and XapiProxy\DataService\initIlias().
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 106 of file class.ilInitialisation.php.
References $ilIliasIniFile, ilTimeZone\initDefaultTimeZone(), and initGlobal().
Here is the call graph for this function:
|
staticprivate |
Definition at line 1921 of file class.ilInitialisation.php.
References $c.
|
staticprivate |
Definition at line 1932 of file class.ilInitialisation.php.
References $c.
|
staticprivate |
|
staticprotected |
Definition at line 761 of file class.ilInitialisation.php.
References $c.
|
staticprotected |
Init Locale.
Definition at line 884 of file class.ilInitialisation.php.
References $ilSetting.
|
staticprotected |
Init log instance.
Reimplemented in XapiProxy\ilInitialisation.
Definition at line 1068 of file class.ilInitialisation.php.
References $log, ilLoggerFactory\getRootLogger(), and initGlobal().
Here is the call graph for this function:
|
staticprotected |
Definition at line 196 of file class.ilInitialisation.php.
Here is the call graph for this function:
|
staticprotected |
Init auth session.
Definition at line 1194 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 790 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 830 of file class.ilInitialisation.php.
References $DIC, and initGlobal().
Here is the call graph for this function:
|
staticprotected |
Definition at line 345 of file class.ilInitialisation.php.
References $dic.
|
staticprotected |
Init user / authentification (level 2)
Definition at line 1357 of file class.ilInitialisation.php.
References ANONYMOUS_USER_ID.
|
static |
Init user with current account id.
Definition at line 852 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 71 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 1800 of file class.ilInitialisation.php.
Referenced by goToLogin(), goToPublicSection(), handleMaintenanceMode(), and initClientIniFile().
Here is the caller graph for this function:
|
static |
Definition at line 1857 of file class.ilInitialisation.php.
References $DIC, ANONYMOUS_USER_ID, ilLoggerFactory\getLogger(), and ilUserUtil\getStartingPointAsUrl().
Referenced by ILIAS\LegalDocuments\Conductor\__construct(), ilStartUpGUI\doApacheAuthentication(), ilStartUpGUI\doLTIAuthentication(), ilStartUpGUI\doMigration(), ilStartUpGUI\doMigrationNewAccount(), ilStartUpGUI\doOpenIdConnectAuthentication(), ilStartUpGUI\doSamlAuthentication(), ILIAS\AuthShibboleth\LoginPerformer\doShibbolethAuthentication(), ilStartUpGUI\doStandardAuthentication(), ilStartUpGUI\processIndexPHP(), ILIAS\LegalDocuments\ConsumerToolbox\Blocks\routing(), ilStartUpGUI\showLoginPageOrStartupPage(), and ilAuthFrontendCredentialsSoap\tryAuthenticationOnLoginPage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1123 of file class.ilInitialisation.php.
Referenced by ilSoapAdministration\initIlias().
Here is the caller graph for this function:
|
static |
Definition at line 1129 of file class.ilInitialisation.php.
References ilContext\hasUser(), ilContext\initClient(), and ilContext\supportsPersistentSessions().
Referenced by ilSoapAdministration\initAuth(), and 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 58 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 93 of file class.ilInitialisation.php.
References initGlobal().
Here is the call graph for this function:
|
static |
Resume an existing user session.
Definition at line 1384 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 675 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 644 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 687 of file class.ilInitialisation.php.
References $DIC, $ilSetting, and IL_COOKIE_PATH.
|
static |
set session handler to db Used in Soap
Definition at line 625 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 1760 of file class.ilInitialisation.php.
References $ilDB, $ilSetting, and $lng.
Referenced by handleMaintenanceMode().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 1121 of file class.ilInitialisation.php.