|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
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 | initUploadPolicies (\ILIAS\DI\Container $dic) |
| 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 | 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... 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 | 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 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 59 of file class.ilInitialisation.php.
|
staticprotected |
|
staticprotected |
Block authentication based on current request.
Definition at line 1722 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 |
builds http path
Definition at line 382 of file class.ilInitialisation.php.
References $_SERVER, $DIC, Vendor\Package\$f, $path, ILIAS_MODULE, ilContext\modifyHttpPath(), and ilFileUtils\removeTrailingPathSeparators().
Here is the call graph for this function:
|
staticprotected |
This method determines the current client and sets the constant CLIENT_ID.
Definition at line 442 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, $DIC, 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 implementation to retrieve the parameters.
Instead, this implementation here will be used.
Definition at line 508 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 |
go to login
Definition at line 1026 of file class.ilInitialisation.php.
References $client_id, $DIC, ilLanguage\getFallbackInstance(), ilLanguage\getGlobalInstance(), ilLoggerFactory\getLogger(), 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 972 of file class.ilInitialisation.php.
References $_SERVER, $DIC, $GLOBALS, ANONYMOUS_USER_ID, 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 1497 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 1181 of file class.ilInitialisation.php.
|
static |
Set error reporting level.
Definition at line 1281 of file class.ilInitialisation.php.
Referenced by ilWebAccessCheckerDelivery\handleRequest().
Here is the caller graph for this function:
|
staticprotected |
handle maintenance mode
Definition at line 637 of file class.ilInitialisation.php.
References ilContext\hasHTML().
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.
Definition at line 111 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 1103 of file class.ilInitialisation.php.
References ilRbacSystem\getInstance().
Here is the call graph for this function:
|
staticprotected |
Definition at line 829 of file class.ilInitialisation.php.
References Vendor\Package\$c, and ActiveRecord\orderBy().
Here is the call graph for this function:
|
staticprotected |
|
staticprivate |
Definition at line 1975 of file class.ilInitialisation.php.
References Vendor\Package\$c, and $ilIliasIniFile.
|
staticprotected |
Init client-based objects (level 1)
Definition at line 1326 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.
Definition at line 555 of file class.ilInitialisation.php.
References $ilIliasIniFile, CLIENT_ID, CLIENT_WEB_DIR, ILIAS_DATA_DIR, ILIAS_WEB_DIR, and ilDBConstants\TYPE_INNODB.
|
staticprotected |
Definition at line 1630 of file class.ilInitialisation.php.
|
staticprotected |
Init core objects (level 0)
Definition at line 1293 of file class.ilInitialisation.php.
References $GLOBALS, $ilErr, and ILIAS_VERSION_NUMERIC.
|
staticprotected |
Definition at line 780 of file class.ilInitialisation.php.
References Vendor\Package\$c.
|
staticprotected |
| \ILIAS\DI\Container | $c |
Definition at line 806 of file class.ilInitialisation.php.
References Vendor\Package\$c.
|
staticprotected |
initialise database object $ilDB
Definition at line 662 of file class.ilInitialisation.php.
References $ilDB, and ilDBWrapperFactory\getWrapper().
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 329 of file class.ilInitialisation.php.
References Vendor\Package\$c, and ilVirusScannerFactory\_getInstance().
Here is the call graph for this function:
|
staticprotected |
| object | string | $a_class |
Definition at line 1145 of file class.ilInitialisation.php.
References Vendor\Package\$c, $DIC, and $GLOBALS.
|
staticprotected |
Definition at line 672 of file class.ilInitialisation.php.
References $DIC.
|
staticprivate |
| \ILIAS\DI\Container | $c |
Definition at line 1552 of file class.ilInitialisation.php.
References ILIAS_VERSION_NUMERIC.
|
staticprotected |
init HTML output (level 3)
Definition at line 1639 of file class.ilInitialisation.php.
References $_GET, $DIC, $GLOBALS, ilContext\hasUser(), ILIAS\Repository\int(), and ilSession\set().
Here is the call graph for this function:
|
staticprotected |
| \ILIAS\DI\Container | $container |
Definition at line 1541 of file class.ilInitialisation.php.
References ILIAS\StaticURL\Init\init().
Here is the call graph for this function:
|
static |
ilias initialisation
Definition at line 1209 of file class.ilInitialisation.php.
References Vendor\Package\$c, $GLOBALS, ilLoggerFactory\getInstance(), ilContext\hasHTML(), ilContext\hasUser(), init(), ilContext\initClient(), and ilContext\supportsPersistentSessions().
Referenced by ilSoapFunctions\__call(), ILIAS\GlobalScreen\Client\CallbackHandler\__construct(), ILIAS\GlobalScreen\Client\ModeToggle\__construct(), ILIAS\GlobalScreen\Client\ItemState\__construct(), ILIAS\UI\examples\Layout\Page\Standard\getUIContent(), ilNusoapUserAdministrationAdapter\handleSoapPlugins(), XapiProxy\DataService\initIlias(), ilCalendarRemoteAccessHandler\initIlias(), ilWebAccessChecker\initILIAS(), ILIAS\UI\examples\MainControls\Footer\pageFooterDemo2Footer(), ilObjCloudModuleMigration\prepare(), ILIAS\GlobalScreen\Client\ContentRenderer\run(), and ILIAS\Test\Setup\ilRemoveDynamicTestsAndCorrespondingDataMigration\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.
Definition at line 127 of file class.ilInitialisation.php.
References $ilIliasIniFile, and ilTimeZone\initDefaultTimeZone().
Here is the call graph for this function:
|
staticprivate |
|
staticprivate |
Definition at line 2019 of file class.ilInitialisation.php.
References Vendor\Package\$c.
|
staticprotected |
Definition at line 824 of file class.ilInitialisation.php.
|
staticprotected |
|
staticprotected |
Init log instance.
Definition at line 1133 of file class.ilInitialisation.php.
References $log, and ilLoggerFactory\getRootLogger().
Here is the call graph for this function:
|
staticprotected |
| \ILIAS\DI\Container | $container |
Definition at line 1593 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, $container, and ilContext\initClient().
Here is the call graph for this function:
|
staticprotected |
Definition at line 215 of file class.ilInitialisation.php.
References Vendor\Package\$c, $DIC, CLIENT_ID, ILIAS_DATA_DIR, ILIAS_WEB_DIR, and init().
Here is the call graph for this function:
|
staticprotected |
Init auth session.
Definition at line 1263 of file class.ilInitialisation.php.
References Vendor\Package\$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 853 of file class.ilInitialisation.php.
References $ilSetting, and ilContext\usesHTTP().
Here is the call graph for this function:
|
staticprotected |
provide $styleDefinition object
Definition at line 893 of file class.ilInitialisation.php.
References $DIC.
|
static |
Definition at line 1568 of file class.ilInitialisation.php.
References ILIAS\LTI\ToolProvider\$key, and XapiProxy\$plugin.
|
staticprotected |
Definition at line 364 of file class.ilInitialisation.php.
References $dic.
|
staticprotected |
Init user / authentification (level 2)
Definition at line 1431 of file class.ilInitialisation.php.
References ANONYMOUS_USER_ID.
|
static |
Init user with current account id.
Definition at line 915 of file class.ilInitialisation.php.
References $DIC, $GLOBALS, ilLoggerFactory\getInstance(), and ilOnlineTracking\updateAccess().
Referenced by 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 77 of file class.ilInitialisation.php.
|
staticprotected |
Redirects to target url if context supports it.
Definition at line 1887 of file class.ilInitialisation.php.
References $GLOBALS, $message, $param, ilUtil\appendUrlParameterString(), ilContext\hasHTML(), ILIAS\FileDelivery\http(), ilUtil\redirect(), ilUtil\stripSlashes(), ilContext\supportsRedirects(), and ilContext\usesHTTP().
Here is the call graph for this function:
|
static |
Definition at line 1944 of file class.ilInitialisation.php.
References $DIC, ANONYMOUS_USER_ID, and ilLoggerFactory\getLogger().
Referenced by ILIAS\LegalDocuments\Conductor\__construct(), ilStartUpGUI\doApacheAuthentication(), ilStartUpGUI\doCasAuthentication(), ilStartUpGUI\doLTIAuthentication(), ilStartUpGUI\doMigration(), ilStartUpGUI\doMigrationNewAccount(), ilStartUpGUI\doOpenIdConnectAuthentication(), ilStartUpGUI\doSamlAuthentication(), ilStartUpGUI\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 1188 of file class.ilInitialisation.php.
Referenced by ilSoapAdministration\initIlias().
Here is the caller graph for this function:
|
static |
Definition at line 1194 of file class.ilInitialisation.php.
References ilContext\hasUser(), ilContext\initClient(), and ilContext\supportsPersistentSessions().
Referenced by ilWebAccessChecker\addAppliedCheckingMethod(), 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 64 of file class.ilInitialisation.php.
References $_GET.
|
staticprotected |
get common include code files
Definition at line 99 of file class.ilInitialisation.php.
|
static |
Resume an existing user session.
Definition at line 1450 of file class.ilInitialisation.php.
References $_COOKIE, $_SERVER, $DIC, $GLOBALS, ilSession\_destroy(), ILIAS\Survey\Mode\getId(), ilLoggerFactory\getLogger(), ilAuthUtils\handleForcedAuthentication(), ilAuthUtils\isAuthenticationForced(), ilSession\SESSION_CLOSE_EXPIRE, and ilOnlineTracking\updateAccess().
Here is the call graph for this function:
|
staticprivate |
Definition at line 738 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 707 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 750 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 688 of file class.ilInitialisation.php.
References ilSession\_exists().
Here is the call graph for this function:
|
staticprotected |
Translate message if possible.
Definition at line 1847 of file class.ilInitialisation.php.
References $ilDB, $ilSetting, $lang, $lng, and $message.
|
staticprotected |
Definition at line 1186 of file class.ilInitialisation.php.