ILIAS
release_4-3 Revision
|
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 | initUserAccount () |
Init user with current account id. | |
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 | checkUserAgreement (ilObjUser $a_user) |
Check user agreement for every request. | |
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 | initHTML () |
init HTML output (level 3) | |
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 | redirect ($a_target, $a_message_details) |
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 878 of file class.ilInitialisation.php.
References $GLOBALS.
Referenced by determineClient(), goToPublicSection(), handleMaintenanceMode(), initClientIniFile(), initSettings(), initUserAccount(), redirect(), and setSessionHandler().
|
staticprotected |
Try authentication.
This will basically validate the current session
Definition at line 1153 of file class.ilInitialisation.php.
References $ilErr, and initUserAccount().
Referenced by initILIAS().
|
staticprotected |
Block authentication based on current request.
Definition at line 1338 of file class.ilInitialisation.php.
References $_REQUEST, $cmd, and getCurrentCmd().
|
staticprotected |
builds http path
Definition at line 184 of file class.ilInitialisation.php.
References $dirs, $https, $path, ILIAS_MODULE, and ilUtil\removeTrailingPathSeparators().
Referenced by initSettings().
|
staticprotected |
Check user agreement for every request.
ilObjUser | $a_user |
Definition at line 592 of file class.ilInitialisation.php.
References $_GET, $_POST, ilObjUser\checkTimeLimit(), ilObject\getId(), ilObjUser\hasAcceptedUserAgreement(), and redirect().
Referenced by initUserAccount().
|
staticprotected |
This method determines the current client and sets the constant CLIENT_ID.
Definition at line 244 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 1320 of file class.ilInitialisation.php.
References $_REQUEST, and $cmd.
Referenced by blockedAuthentication().
|
staticprotected |
go to login
int | $a_auth_stat |
Definition at line 728 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 650 of file class.ilInitialisation.php.
References $_GET, $_POST, ilAuthUtils\_initAuth(), abortAndDie(), AUTH_EXPIRED, AUTH_IDLED, initUserAccount(), redirect(), ilSession\SESSION_CLOSE_EXPIRE, ilSession\SESSION_CLOSE_PUBLIC, ilSession\setClosingContext(), and setSessionHandler().
Referenced by ilStartUpGUI\processIndexPHP(), and ilStartUpGUI\processStartingPage().
|
staticprotected |
Prepare developer tools.
Definition at line 890 of file class.ilInitialisation.php.
Referenced by initClient().
|
staticprotected |
handle maintenance mode
Definition at line 373 of file class.ilInitialisation.php.
References abortAndDie(), ilContext\hasHTML(), and redirect().
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 822 of file class.ilInitialisation.php.
References ilRbacSystem\getInstance(), and initGlobal().
Referenced by initUser().
|
staticprotected |
Init client-based objects (level 1)
Definition at line 1010 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 291 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 954 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 397 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 860 of file class.ilInitialisation.php.
References $GLOBALS.
Referenced by initAccessHandling(), initClient(), initClientIniFile(), initCore(), initDatabase(), initHTML(), initIliasIniFile(), initLanguage(), initLog(), initSettings(), initStyle(), initUser(), and requireCommonIncludes().
|
staticprotected |
init HTML output (level 3)
Definition at line 1254 of file class.ilInitialisation.php.
References $_GET, $ilUser, $tpl, ilUtil\getStyleSheetLocation(), initGlobal(), initStyle(), and ilSession\set().
Referenced by initILIAS().
|
static |
ilias initialisation
Definition at line 914 of file class.ilInitialisation.php.
References authenticate(), ilContext\doAuthentication(), ilContext\hasHTML(), ilContext\hasUser(), includePhp5Compliance(), ilContext\initClient(), initClient(), initCore(), initHTML(), 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 761 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 618 of file class.ilInitialisation.php.
References $GLOBALS, and $ilSetting.
Referenced by initClient().
|
staticprotected |
Init log instance.
Definition at line 843 of file class.ilInitialisation.php.
References $log, and initGlobal().
Referenced by initClient().
|
staticprotected |
initialise $ilSettings object and define constants
Used in Soap
Definition at line 492 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 535 of file class.ilInitialisation.php.
References ilPluginAdmin\getPluginObject(), IL_COMP_SERVICE, and initGlobal().
Referenced by initHTML().
|
staticprotected |
Init user / authentification (level 2)
Definition at line 1093 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().
|
static |
Init user with current account id.
Definition at line 558 of file class.ilInitialisation.php.
References $GLOBALS, $ilUser, abortAndDie(), checkUserAgreement(), ilSession\get(), and ilSession\set().
Referenced by authenticate(), and goToPublicSection().
|
staticprotected |
Redirects to target url if context supports it.
string | $a_target | |
string | $a_message_details |
Definition at line 1396 of file class.ilInitialisation.php.
References abortAndDie(), ilContext\hasHTML(), ilContext\supportsRedirects(), and ilContext\usesHTTP().
Referenced by checkUserAgreement(), 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 437 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 413 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 1374 of file class.ilInitialisation.php.
References $_REQUEST.