ILIAS
Release_4_1_x_branch Revision 61804
|
ILIAS Initialisation Utility Class perform basic setup: init database handler, load configuration file, init user authentification & error handler, load object type definitions. More...
Public Member Functions | |
removeUnsafeCharacters () | |
Remove unsafe characters from GET. | |
returnBeforeAuth ($a_flag=null) | |
requireCommonIncludes () | |
get common include code files | |
includePhp5Compliance () | |
This is a hack for CAS authentication. | |
initIliasIniFile () | |
This method provides a global instance of class ilIniFile for the ilias.ini.php file in variable $ilIliasIniFile. | |
buildHTTPPath () | |
builds http path | |
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. | |
handleMaintenanceMode () | |
handle maintenance mode | |
initDatabase () | |
initialise database object $ilDB | |
initEventHandling () | |
initialise event handler ilAppEventHandler | |
setSessionHandler () | |
set session handler to db | |
setCookieParams () | |
set session cookie params for path, domain, etc. | |
initSettings () | |
initialise $ilSettings object and define constants | |
determineScriptAndUpDir () | |
determine current script and path to main ILIAS directory | |
initStyle () | |
provide $styleDefinition object | |
handleStyle () | |
set skin and style via $_GET parameters "skin" and "style" | |
initUserAccount () | |
initLocale () | |
Init Locale. | |
checkUserClientIP () | |
checkUserAgreement () | |
goToPublicSection () | |
go to public section | |
goToLogin ($a_auth_stat="") | |
go to login | |
initLanguage () | |
$lng initialisation | |
initAccessHandling () | |
$ilAccess and $rbac... | |
initFeed () | |
Initialisation for feed.php. | |
initLog () | |
initILIASObject () |
Data Fields | |
$script = "" |
Private Attributes | |
$return_before_auth = false |
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 19 of file class.ilInitialisation.php.
ilInitialisation::buildHTTPPath | ( | ) |
builds http path
this is also used by other classes now, e.g. in ilSoapAuthenticationCAS.php
Definition at line 267 of file class.ilInitialisation.php.
References $dir, $dirs, $path, ILIAS_MODULE, and ilUtil\removeTrailingPathSeparators().
Referenced by initSettings().
ilInitialisation::checkUserAgreement | ( | ) |
Definition at line 754 of file class.ilInitialisation.php.
References $_GET, $_POST, $ilAuth, and ilUtil\redirect().
ilInitialisation::checkUserClientIP | ( | ) |
Definition at line 732 of file class.ilInitialisation.php.
References $ilAuth, $ilLog, and ilUtil\redirect().
ilInitialisation::determineClient | ( | ) |
This method determines the current client and sets the constant CLIENT_ID.
Definition at line 328 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, $client_id, $ilIliasIniFile, ilUtil\setCookie(), and ilUtil\stripSlashes().
Referenced by initFeed().
ilInitialisation::determineScriptAndUpDir | ( | ) |
determine current script and path to main ILIAS directory
Definition at line 603 of file class.ilInitialisation.php.
ilInitialisation::goToLogin | ( | $a_auth_stat = "" | ) |
go to login
Definition at line 870 of file class.ilInitialisation.php.
References $_COOKIE, $_GET, $script, and exit.
Referenced by goToPublicSection().
ilInitialisation::goToPublicSection | ( | ) |
go to public section
Definition at line 787 of file class.ilInitialisation.php.
References $_GET, $_POST, $ilAuth, $script, ilStartUpGUI\_checkGoto(), ilAuthUtils\_initAuth(), exit, goToLogin(), initUserAccount(), and setSessionHandler().
ilInitialisation::handleMaintenanceMode | ( | ) |
handle maintenance mode
Definition at line 442 of file class.ilInitialisation.php.
References ilUtil\redirect().
Referenced by initFeed().
ilInitialisation::handleStyle | ( | ) |
set skin and style via $_GET parameters "skin" and "style"
Definition at line 646 of file class.ilInitialisation.php.
References $_GET, $_SESSION, and ilObjStyleSettings\_lookupActivatedStyle().
ilInitialisation::includePhp5Compliance | ( | ) |
This is a hack for CAS authentication.
Since the phpCAS lib ships with its own compliance functions.
Definition at line 165 of file class.ilInitialisation.php.
References ilAuthFactory\CONTEXT_CAS, and ilAuthFactory\getContext().
ilInitialisation::initAccessHandling | ( | ) |
$ilAccess and $rbac...
initialisation
Definition at line 976 of file class.ilInitialisation.php.
References $GLOBALS, $ilBench, and ilRbacSystem\getInstance().
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 377 of file class.ilInitialisation.php.
References $GLOBALS, ILIAS_ABSOLUTE_PATH, and ILIAS_WEB_DIR.
Referenced by initFeed().
ilInitialisation::initDatabase | ( | ) |
initialise database object $ilDB
Definition at line 465 of file class.ilInitialisation.php.
References $GLOBALS, $ilDB, and ilDBWrapperFactory\getWrapper().
Referenced by initFeed().
ilInitialisation::initEventHandling | ( | ) |
initialise event handler ilAppEventHandler
Definition at line 481 of file class.ilInitialisation.php.
References $GLOBALS.
Referenced by initFeed().
ilInitialisation::initFeed | ( | ) |
Initialisation for feed.php.
Definition at line 1537 of file class.ilInitialisation.php.
References $_COOKIE, $GLOBALS, $ilBench, $ilCtrl, $ilDB, $ilErr, $ilIliasIniFile, $ilLog, $ilSetting, $lng, determineClient(), exit, handleMaintenanceMode(), initClientIniFile(), initDatabase(), initEventHandling(), initIliasIniFile(), initSettings(), PEAR_ERROR_CALLBACK, removeUnsafeCharacters(), requireCommonIncludes(), and ilUtil\setCookie().
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 192 of file class.ilInitialisation.php.
References $GLOBALS, and $ilIliasIniFile.
Referenced by initFeed().
ilInitialisation::initILIASObject | ( | ) |
Definition at line 1615 of file class.ilInitialisation.php.
ilInitialisation::initLanguage | ( | ) |
$lng initialisation
Definition at line 909 of file class.ilInitialisation.php.
References $_GET, $_POST, $_SESSION, $GLOBALS, $ilBench, $ilSetting, $lng, ilLanguage\getInstalledLanguages(), and ilUtil\stripSlashes().
ilInitialisation::initLocale | ( | ) |
Init Locale.
Definition at line 704 of file class.ilInitialisation.php.
References $GLOBALS, and $ilSetting.
ilInitialisation::initLog | ( | ) |
ilInitialisation::initSettings | ( | ) |
initialise $ilSettings object and define constants
Definition at line 567 of file class.ilInitialisation.php.
References $GLOBALS, $ilSetting, ilGeneralSettings\_isPaymentEnabled(), and buildHTTPPath().
Referenced by initFeed().
ilInitialisation::initStyle | ( | ) |
provide $styleDefinition object
Definition at line 630 of file class.ilInitialisation.php.
References $GLOBALS, and $ilBench.
ilInitialisation::initUserAccount | ( | ) |
Definition at line 672 of file class.ilInitialisation.php.
References $_SESSION, $ilAuth, and $ilLog.
Referenced by goToPublicSection().
ilInitialisation::removeUnsafeCharacters | ( | ) |
Remove unsafe characters from GET.
Definition at line 27 of file class.ilInitialisation.php.
References $_GET.
Referenced by initFeed().
ilInitialisation::requireCommonIncludes | ( | ) |
get common include code files
Definition at line 61 of file class.ilInitialisation.php.
References $GLOBALS, $ilBench, and ilUtil\StopWatch().
Referenced by initFeed().
ilInitialisation::returnBeforeAuth | ( | $a_flag = null | ) |
Definition at line 47 of file class.ilInitialisation.php.
References $return_before_auth.
ilInitialisation::setCookieParams | ( | ) |
set session cookie params for path, domain, etc.
Definition at line 512 of file class.ilInitialisation.php.
References $GLOBALS, ilAuthFactory\CONTEXT_HTTP, ilAuthFactory\getContext(), and IL_COOKIE_PATH.
ilInitialisation::setSessionHandler | ( | ) |
set session handler to db
Definition at line 494 of file class.ilInitialisation.php.
References $ilErr, and db_set_save_handler().
Referenced by goToPublicSection().
|
private |
Definition at line 21 of file class.ilInitialisation.php.
Referenced by returnBeforeAuth().
ilInitialisation::$script = "" |
Definition at line 22 of file class.ilInitialisation.php.
Referenced by goToLogin(), and goToPublicSection().