ILIAS
Release_4_4_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...
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 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 | authenticate () |
Try authentication. | |
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. |
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 869 of file class.ilInitialisation.php.
References $GLOBALS.
Referenced by determineClient(), goToPublicSection(), handleMaintenanceMode(), initClientIniFile(), initLog(), initSettings(), redirect(), and setSessionHandler().
|
staticprotected |
Try authentication.
This will basically validate the current session
Definition at line 1144 of file class.ilInitialisation.php.
References $ilErr.
Referenced by initILIAS().
|
staticprotected |
Block authentication based on current request.
Definition at line 1341 of file class.ilInitialisation.php.
References $_GET, $_REQUEST, $cmd, and getCurrentCmd().
|
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().
|
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().
|
staticprotected |
Extract current cmd from request.
Definition at line 1323 of file class.ilInitialisation.php.
References $_REQUEST, and $cmd.
Referenced by blockedAuthentication().
|
staticprotected |
go to login
int | $a_auth_stat |
Definition at line 711 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, AUTH_EXPIRED, AUTH_IDLED, redirect(), 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, $_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().
|
staticprotected |
Prepare developer tools.
Definition at line 881 of file class.ilInitialisation.php.
Referenced by initClient().
|
staticprotected |
handle maintenance mode
Definition at line 376 of file class.ilInitialisation.php.
References abortAndDie(), ilContext\hasHTML(), redirect(), and translateMessage().
Referenced by initClient().
|
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().
|
staticprotected |
$ilAccess and $rbac...
initialisation
Definition at line 807 of file class.ilInitialisation.php.
References ilRbacSystem\getInstance(), and initGlobal().
Referenced by initUser().
|
staticprotected |
Init client-based objects (level 1)
Definition at line 1001 of file class.ilInitialisation.php.
References $GLOBALS, $https, determineClient(), handleDevMode(), handleMaintenanceMode(), initClientIniFile(), initDatabase(), initGlobal(), initLocale(), initLog(), initSettings(), setSessionHandler(), and ilContext\usesHTTP().
Referenced by initILIAS().
|
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().
|
staticprotected |
Init core objects (level 0)
Definition at line 945 of file class.ilInitialisation.php.
References $_POST, $ilErr, ilSession\get(), initGlobal(), initIliasIniFile(), PEAR_ERROR_CALLBACK, removeUnsafeCharacters(), requireCommonIncludes(), setCookieParams(), and PEAR\setErrorHandling().
Referenced by initILIAS().
|
staticprotected |
initialise database object $ilDB
Definition at line 404 of file class.ilInitialisation.php.
References ilDBWrapperFactory\getWrapper(), and initGlobal().
Referenced by initClient().
|
staticprotected |
Initialize global instance.
string | $a_name | |
string | $a_class | |
string | $a_source_file |
Definition at line 851 of file class.ilInitialisation.php.
References $GLOBALS.
Referenced by initAccessHandling(), initClient(), initClientIniFile(), initCore(), initDatabase(), initIliasIniFile(), initLanguage(), initLog(), initSettings(), initStyle(), initUser(), and requireCommonIncludes().
|
static |
ilias initialisation
Definition at line 905 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().
|
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().
|
staticprotected |
$lng initialisation
Definition at line 746 of file class.ilInitialisation.php.
References $_GET, $_POST, $ilSetting, $ilUser, $lng, ilSession\get(), ilLanguage\getInstalledLanguages(), initGlobal(), ilSession\set(), and ilUtil\stripSlashes().
Referenced by initILIAS().
|
staticprotected |
Init Locale.
Definition at line 599 of file class.ilInitialisation.php.
References $GLOBALS, and $ilSetting.
Referenced by initClient().
|
staticprotected |
Init log instance.
Definition at line 828 of file class.ilInitialisation.php.
References $log, abortAndDie(), and initGlobal().
Referenced by initClient().
|
staticprotected |
initialise $ilSettings object and define constants
Used in Soap
Definition at line 499 of file class.ilInitialisation.php.
References $ilSetting, ilPaymentSettings\_isPaymentEnabled(), abortAndDie(), buildHTTPPath(), initGlobal(), and ilContext\usesHTTP().
Referenced by initClient().
|
staticprotected |
provide $styleDefinition object
Definition at line 542 of file class.ilInitialisation.php.
References ilPluginAdmin\getPluginObject(), IL_COMP_SERVICE, and initGlobal().
|
staticprotected |
Init user / authentification (level 2)
Definition at line 1084 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().
|
staticprotected |
Redirects to target url if context supports it.
string | $a_target | |
string | $a_message_id | |
array | $a_message_details |
Definition at line 1470 of file class.ilInitialisation.php.
References abortAndDie(), ilContext\hasHTML(), ilContext\supportsRedirects(), translateMessage(), and ilContext\usesHTTP().
Referenced by goToLogin(), goToPublicSection(), handleMaintenanceMode(), and initClientIniFile().
|
staticprotected |
Remove unsafe characters from GET.
Definition at line 32 of file class.ilInitialisation.php.
References $_GET.
Referenced by initCore().
|
staticprotected |
get common include code files
Definition at line 55 of file class.ilInitialisation.php.
References initGlobal(), and ilContext\usesTemplate().
Referenced by initCore().
|
staticprotected |
set session cookie params for path, domain, etc.
Definition at line 444 of file class.ilInitialisation.php.
References $GLOBALS, ilAuthFactory\CONTEXT_HTTP, ilAuthFactory\getContext(), and IL_COOKIE_PATH.
Referenced by initCore().
|
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().
|
staticprotected |
Is current view the login form?
Definition at line 1386 of file class.ilInitialisation.php.
References $_REQUEST.
|
staticprotected |
Translate message if possible.
string | $a_message_id | |
array | $a_message_static |
Definition at line 1409 of file class.ilInitialisation.php.
References $_REQUEST, $ilSetting, $ilUser, $lang, and $lng.
Referenced by handleMaintenanceMode(), and redirect().