|
ILIAS
Release_5_0_x_branch Revision 61816
|
ILIAS Initialisation Utility Class perform basic setup: init database handler, load configuration file, init user authentification & error handler, load object type definitions. More...
Collaboration diagram for ilInitialisation:Public Member Functions | |
| removeUnsafeCharacters () | |
| Remove unsafe characters from GET. | |
| requireCommonIncludes () | |
| get common include code files | |
| initIliasIniFile () | |
| This method provides a global instance of class ilIniFile for the ilias.ini.php file in variable $ilIliasIniFile. | |
| determineClient () | |
| This method determines the current client and sets the constant CLIENT_ID. | |
| initClientIniFile () | |
| This method provides a global instance of class ilIniFile for the client.ini.php file in variable $ilClientIniFile. | |
| initDatabase () | |
| initialise database object $ilDB | |
| initEventHandling () | |
| initialise event handler ilAppEventHandler | |
| initILIAS ($context="web") | |
| ilias initialisation | |
| initLog () | |
| persistCMIData () | |
Static Public Member Functions | |
| static | setSessionHandler () |
| set session handler to db | |
| static | goToPublicSection ($a_auth_stat="") |
| go to public section | |
| static | initILIAS () |
| ilias initialisation | |
| static | authenticate () |
| Try authentication. | |
Static Protected Member Functions | |
| static | removeUnsafeCharacters () |
| Remove unsafe characters from GET. | |
| static | requireCommonIncludes () |
| get common include code files | |
| static | includePhp5Compliance () |
| This is a hack for authentication. | |
| static | initIliasIniFile () |
| This method provides a global instance of class ilIniFile for the ilias.ini.php file in variable $ilIliasIniFile. | |
| static | buildHTTPPath () |
| builds http path | |
| static | determineClient () |
| This method determines the current client and sets the constant CLIENT_ID. | |
| static | initClientIniFile () |
| This method provides a global instance of class ilIniFile for the client.ini.php file in variable $ilClientIniFile. | |
| static | handleMaintenanceMode () |
| handle maintenance mode | |
| static | initDatabase () |
| initialise database object $ilDB | |
| static | setCookieParams () |
| set session cookie params for path, domain, etc. | |
| static | initSettings () |
| initialise $ilSettings object and define constants | |
| static | initStyle () |
| provide $styleDefinition object | |
| static | initLocale () |
| Init Locale. | |
| static | goToLogin ($a_auth_stat="") |
| go to login | |
| static | initLanguage () |
| $lng initialisation | |
| static | initAccessHandling () |
| $ilAccess and $rbac... | |
| static | initLog () |
| Init log instance. | |
| static | initGlobal ($a_name, $a_class, $a_source_file=null) |
| Initialize global instance. | |
| static | abortAndDie ($a_message) |
| Exit. | |
| static | handleDevMode () |
| Prepare developer tools. | |
| static | initCore () |
| Init core objects (level 0) | |
| static | initClient () |
| Init client-based objects (level 1) | |
| static | initUser () |
| Init user / authentification (level 2) | |
| static | getCurrentCmd () |
| Extract current cmd from request. | |
| static | blockedAuthentication ($a_current_script) |
| Block authentication based on current request. | |
| static | showingLoginForm ($a_current_script) |
| Is current view the login form? | |
| static | translateMessage ($a_message_id, array $a_message_static=null) |
| Translate message if possible. | |
| static | redirect ($a_target, $a_message_id, $a_message_static) |
| Redirects to target url if context supports it. | |
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 27 of file class.ilInitialisation.php.
|
staticprotected |
Exit.
| string | $a_message |
Definition at line 874 of file class.ilInitialisation.php.
References $GLOBALS.
Referenced by determineClient(), goToPublicSection(), handleMaintenanceMode(), initClientIniFile(), initLog(), initSettings(), redirect(), and setSessionHandler().
Here is the caller graph for this function:
|
static |
Try authentication.
This will basically validate the current session
Definition at line 1157 of file class.ilInitialisation.php.
References $ilErr.
Referenced by ilWebAccessChecker\checkAccess(), and initILIAS().
Here is the caller graph for this function:
|
staticprotected |
Block authentication based on current request.
Definition at line 1365 of file class.ilInitialisation.php.
References $_GET, $_REQUEST, $cmd, and getCurrentCmd().
Here is the call graph for this function:
|
staticprotected |
builds http path
Definition at line 185 of file class.ilInitialisation.php.
References $dirs, $https, $path, ILIAS_MODULE, and ilUtil\removeTrailingPathSeparators().
Referenced by initSettings().
Here is the call graph for this function:
Here is the caller graph for this function:| ilInitialisation::determineClient | ( | ) |
This method determines the current client and sets the constant CLIENT_ID.
Definition at line 125 of file class.ilInitialisation.php.
References $_GET, and $ilIliasIniFile.
|
staticprotected |
This method determines the current client and sets the constant CLIENT_ID.
Definition at line 245 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, $client_id, $ilIliasIniFile, abortAndDie(), ilUtil\setCookie(), and ilUtil\stripSlashes().
Referenced by initClient(), and initILIAS().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Extract current cmd from request.
Definition at line 1347 of file class.ilInitialisation.php.
References $_REQUEST, and $cmd.
Referenced by blockedAuthentication().
Here is the caller graph for this function:
|
staticprotected |
go to login
| int | $a_auth_stat |
Definition at line 716 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, AUTH_EXPIRED, AUTH_IDLED, 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
| int | $a_auth_stat |
Definition at line 636 of file class.ilInitialisation.php.
References $_GET, $_POST, ilAuthUtils\_initAuth(), abortAndDie(), AUTH_EXPIRED, AUTH_IDLED, redirect(), ilSession\SESSION_CLOSE_EXPIRE, ilSession\SESSION_CLOSE_PUBLIC, ilSession\setClosingContext(), and setSessionHandler().
Referenced by ilStartUpGUI\processIndexPHP().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Prepare developer tools.
Definition at line 886 of file class.ilInitialisation.php.
Referenced by initClient().
Here is the caller graph for this function:
|
staticprotected |
handle maintenance mode
Definition at line 376 of file class.ilInitialisation.php.
References abortAndDie(), ilContext\hasHTML(), redirect(), and translateMessage().
Referenced by initClient().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
This is a hack for authentication.
Since the phpCAS lib ships with its own compliance functions.
Definition at line 93 of file class.ilInitialisation.php.
References ilAuthFactory\CONTEXT_CAS, and ilAuthFactory\getContext().
Referenced by initILIAS().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
$ilAccess and $rbac...
initialisation
Definition at line 812 of file class.ilInitialisation.php.
References ilRbacSystem\getInstance(), and initGlobal().
Referenced by initUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Init client-based objects (level 1)
Definition at line 1012 of file class.ilInitialisation.php.
References $GLOBALS, $https, determineClient(), handleDevMode(), handleMaintenanceMode(), initClientIniFile(), initDatabase(), initGlobal(), initLocale(), initLog(), initSettings(), setCookieParams(), setSessionHandler(), and ilContext\usesHTTP().
Referenced by initILIAS().
Here is the call graph for this function:
Here is the caller graph for this function:| ilInitialisation::initClientIniFile | ( | ) |
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 150 of file class.ilInitialisation.php.
References $GLOBALS, ILIAS_ABSOLUTE_PATH, and ILIAS_WEB_DIR.
|
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 292 of file class.ilInitialisation.php.
References $_COOKIE, $ilIliasIniFile, abortAndDie(), ILIAS_ABSOLUTE_PATH, ILIAS_WEB_DIR, initGlobal(), redirect(), and ilUtil\setCookie().
Referenced by initClient(), and initILIAS().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Init core objects (level 0)
Definition at line 959 of file class.ilInitialisation.php.
References $_POST, $ilErr, ilSession\get(), initGlobal(), initIliasIniFile(), PEAR_ERROR_CALLBACK, removeUnsafeCharacters(), requireCommonIncludes(), and PEAR\setErrorHandling().
Referenced by initILIAS().
Here is the call graph for this function:
Here is the caller graph for this function:| ilInitialisation::initDatabase | ( | ) |
initialise database object $ilDB
Definition at line 204 of file class.ilInitialisation.php.
References $GLOBALS, $ilDB, and ilDBWrapperFactory\getWrapper().
Here is the call graph for this function:
|
staticprotected |
initialise database object $ilDB
Definition at line 404 of file class.ilInitialisation.php.
References $ilDB, ilDBWrapperFactory\getWrapper(), and initGlobal().
Referenced by initClient(), and initILIAS().
Here is the call graph for this function:
Here is the caller graph for this function:| ilInitialisation::initEventHandling | ( | ) |
initialise event handler ilAppEventHandler
Definition at line 220 of file class.ilInitialisation.php.
References $GLOBALS.
|
staticprotected |
Initialize global instance.
| string | $a_name | |
| string | $a_class | |
| string | $a_source_file |
Definition at line 856 of file class.ilInitialisation.php.
References $GLOBALS.
Referenced by initAccessHandling(), initClient(), initClientIniFile(), initCore(), initDatabase(), initIliasIniFile(), initLanguage(), initLog(), initSettings(), initStyle(), initUser(), and requireCommonIncludes().
Here is the caller graph for this function:| ilInitialisation::initILIAS | ( | $context = "web" | ) |
ilias initialisation
| string | $context | this is used for circumvent redirects to the login page if called e.g. by soap |
Definition at line 235 of file class.ilInitialisation.php.
References $_GET, $GLOBALS, $https, $ilBench, $ilCtrl, $ilDB, $ilErr, $ilIliasIniFile, $ilLog, $ilSetting, $ilUser, $lng, determineClient(), initClientIniFile(), initDatabase(), initIliasIniFile(), initLog(), persistCMIData(), removeUnsafeCharacters(), requireCommonIncludes(), and ilSCORM2004StoreData\scormPlayerUnload().
Here is the call graph for this function:
|
static |
ilias initialisation
Definition at line 912 of file class.ilInitialisation.php.
References authenticate(), ilContext\doAuthentication(), ilContext\hasHTML(), ilContext\hasUser(), includePhp5Compliance(), ilContext\initClient(), initClient(), initCore(), initLanguage(), initUser(), and ilECSTaskScheduler\start().
Referenced by ilSoapAdministration\getClientInfoXML(), ilSoapAdministration\getInstallationInfoXML(), ilCalendarRemoteAccessHandler\initIlias(), and ilSoapAdministration\initIlias().
Here is the call graph for this function:
Here is the caller graph for this function:| ilInitialisation::initIliasIniFile | ( | ) |
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 88 of file class.ilInitialisation.php.
References $GLOBALS, and $ilIliasIniFile.
|
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 114 of file class.ilInitialisation.php.
References $ilIliasIniFile, and initGlobal().
Referenced by initCore(), and initILIAS().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
$lng initialisation
Definition at line 751 of file class.ilInitialisation.php.
References $_GET, $_POST, $ilSetting, $ilUser, $lng, ilSession\get(), ilLanguage\getInstalledLanguages(), initGlobal(), ilSession\set(), and ilUtil\stripSlashes().
Referenced by initILIAS().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Init Locale.
Definition at line 604 of file class.ilInitialisation.php.
References $GLOBALS, and $ilSetting.
Referenced by initClient().
Here is the caller graph for this function:| ilInitialisation::initLog | ( | ) |
|
staticprotected |
Init log instance.
Definition at line 833 of file class.ilInitialisation.php.
References $log, abortAndDie(), and initGlobal().
Referenced by initClient(), and initILIAS().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
initialise $ilSettings object and define constants
Used in Soap
Definition at line 504 of file class.ilInitialisation.php.
References $ilSetting, ilPaymentSettings\_isPaymentEnabled(), abortAndDie(), buildHTTPPath(), initGlobal(), and ilContext\usesHTTP().
Referenced by initClient().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
provide $styleDefinition object
Definition at line 547 of file class.ilInitialisation.php.
References ilPluginAdmin\getPluginObject(), IL_COMP_SERVICE, and initGlobal().
Here is the call graph for this function:
|
staticprotected |
Init user / authentification (level 2)
Definition at line 1097 of file class.ilInitialisation.php.
References $_GET, $_POST, $_SESSION, $ilUser, ilSession\_destroy(), ilAuthUtils\_initAuth(), initAccessHandling(), initGlobal(), ilSession\SESSION_CLOSE_LOGIN, ilSession\set(), and ilContext\usesHTTP().
Referenced by initILIAS().
Here is the call graph for this function:
Here is the caller graph for this function:| ilInitialisation::persistCMIData | ( | ) |
Definition at line 308 of file class.ilInitialisation.php.
References $_GET, $ilDB, $ilLog, $ilUser, $lm_set, $packageId, and ilUtil\yn2tf().
Referenced by initILIAS().
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.
| string | $a_target | |
| string | $a_message_id | |
| array | $a_message_details |
Definition at line 1494 of file class.ilInitialisation.php.
References abortAndDie(), ilContext\hasHTML(), ilContext\supportsRedirects(), translateMessage(), and ilContext\usesHTTP().
Referenced by goToLogin(), goToPublicSection(), handleMaintenanceMode(), and initClientIniFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilInitialisation::removeUnsafeCharacters | ( | ) |
Remove unsafe characters from GET.
Definition at line 25 of file class.ilInitialisation.php.
References $_GET.
|
staticprotected |
Remove unsafe characters from GET.
Definition at line 32 of file class.ilInitialisation.php.
References $_GET.
Referenced by initCore(), and initILIAS().
Here is the caller graph for this function:| ilInitialisation::requireCommonIncludes | ( | ) |
get common include code files
Definition at line 48 of file class.ilInitialisation.php.
References $GLOBALS, and $ilBench.
|
staticprotected |
get common include code files
Definition at line 55 of file class.ilInitialisation.php.
References initGlobal(), and ilContext\usesTemplate().
Referenced by initCore(), and initILIAS().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
set session cookie params for path, domain, etc.
Definition at line 444 of file class.ilInitialisation.php.
References $GLOBALS, $ilSetting, ilAuthFactory\CONTEXT_HTTP, ilAuthFactory\getContext(), ilHTTPS\getInstance(), and IL_COOKIE_PATH.
Referenced by initClient().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
set session handler to db
Used in Soap/CAS
Definition at line 420 of file class.ilInitialisation.php.
References ilSession\_exists(), and abortAndDie().
Referenced by goToPublicSection(), initClient(), and CASClient\renameSession().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Is current view the login form?
Definition at line 1410 of file class.ilInitialisation.php.
References $_REQUEST.
|
staticprotected |
Translate message if possible.
| string | $a_message_id | |
| array | $a_message_static |
Definition at line 1433 of file class.ilInitialisation.php.
References $_REQUEST, $ilDB, $ilSetting, $ilUser, $lang, and $lng.
Referenced by handleMaintenanceMode(), and redirect().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 907 of file class.ilInitialisation.php.