|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Setup class. More...
Collaboration diagram for ilSetup:Public Member Functions | |
| __construct (\ilSetupPasswordManager $passwordManager, $a_auth, $a_auth_type) | |
| constructor More... | |
| setClient ($a_cl) | |
| getClient () | |
| init () | |
| init setup load settings from ilias.ini if exists and sets some constants More... | |
| saveNewClient () | |
| saves client.ini & updates client list in ilias.ini More... | |
| updateNewClient ($a_old_client_id) | |
| update client.ini & move data dirs does not work correctly at this time - DISABLED More... | |
| createDatabase ($a_collation="") | |
| create client database More... | |
| installDatabase () | |
| set the database data More... | |
| checkIniFileExists () | |
| check if inifile exists More... | |
| checkWritable () | |
| check for writable directory More... | |
| checkCreatable ($a_dir=".") | |
| check for permission to create new folders in specified directory More... | |
| checkCookiesEnabled () | |
| check cookies enabled More... | |
| checkPHPVersion () | |
| check for PHP version More... | |
| checkMySQL () | |
| Check MySQL. More... | |
| checkAuth () | |
| check authentication status More... | |
| checkDom () | |
| Check MySQL. More... | |
| checkXsl () | |
| Check MySQL. More... | |
| checkGd () | |
| Check MySQL. More... | |
| checkMemoryLimit () | |
| Check Memory Limit. More... | |
| queryPreliminaries () | |
| preliminaries More... | |
| checkPreliminaries () | |
| check all prliminaries More... | |
| getMasterPassword () | |
| storeMasterPassword (string $raw) | |
| verifyMasterPassword (string $raw) | |
| loginAsClient ($a_auth_data) | |
| process client login More... | |
| loginAsAdmin (string $raw) | |
| Process setup admin login. More... | |
| newClient ($a_client_id=0) | |
| creates a client object in $this->client More... | |
| getStatus ($client=0) | |
| coumpute client status More... | |
| checkFinish (&$client) | |
| check if client setup was finished More... | |
| checkAccess (&$client) | |
| check client access status More... | |
| checkClientIni (&$client) | |
| check client ini status More... | |
| checkClientDatabase (ilClient $client) | |
| checkClientSessionSettings (&$client, $a_as_bool=false) | |
| check client session config status More... | |
| checkClientProxySettings (ilClient $client) | |
| checkClientLanguages (ilClient $client) | |
| checkClientContact (&$client) | |
| check client contact data status More... | |
| checkClientNIC (&$client) | |
| check client nic status More... | |
| isInstalled () | |
| check if client's db is installed More... | |
| isAuthenticated () | |
| check if current user is authenticated More... | |
| isAdmin () | |
| check if current user is admin More... | |
| saveMasterSetup ($a_formdata) | |
| saves intial settings More... | |
| updateMasterSettings ($a_formdata) | |
| updates settings More... | |
| checkToolsSetup ($a_formdata) | |
| check pathes to 3rd party software More... | |
| checkDataDirSetup ($a_formdata) | |
| check datadir path More... | |
| checkPasswordSetup ($a_formdata) | |
| check setup password More... | |
| checkLogSetup ($a_formdata) | |
| check log path More... | |
| checkErrorLogSetup ($error_log_path) | |
| check error log path More... | |
| getError () | |
| get Error message More... | |
| _ilSetup () | |
| destructor More... | |
| testConvert ($a_convert_path) | |
| Check convert program. More... | |
| testGhostscript ($a_ghostscript_path) | |
| Check ghostscript program. More... | |
| testJava ($a_java_path) | |
| Check JVM. More... | |
| testLatex ($a_latex_url) | |
| Check latex cgi script. More... | |
| testZip ($a_zip_path) | |
| Check zip program. More... | |
| testUnzip ($a_unzip_path) | |
| Check unzip program. More... | |
| unzip ($a_file, $overwrite=false) | |
| unzip file More... | |
| setSessionSettings ($session_settings) | |
| saves session settings to db More... | |
| getSessionSettings () | |
| reads session settings from db More... | |
| cloneFromSource ($source_id) | |
| Clone source client into current client. More... | |
| printProxyStatus ($client) | |
| Print proxy settings. More... | |
| saveProxySettings ($proxy_settings) | |
| hasOpCacheEnabled () | |
| isValidClientId ($a_client_id) | |
| Is valid client id. More... | |
Data Fields | |
| $ini | |
| $ini_file_path | |
| $error = "" | |
| $ini_ilias_exists = false | |
| $ini_client_exists = false | |
| $setup_defaults | |
| $ilias_nic_server = "https://nic.ilias.de/index.php" | |
| $preliminaries_result = array() | |
| $preliminaries = true | |
| $SQL_FILE = "./setup/sql/ilias3.sql" | |
| $dsn = "" | |
| $db | |
| $setup_password | |
| $default_client | |
| $safe_mode | |
| $safe_mode_exec_dir | |
| $auth | |
| $access_mode | |
| $client | |
Protected Member Functions | |
| checkOpcacheSettings () | |
| isDirectoryInOther ($directory, $other_directory) | |
| Checks if directory is subdirectory of other directory. More... | |
Protected Attributes | |
| $passwordManager | |
Setup class.
class to setup ILIAS first and maintain the ini-settings and the database
Definition at line 15 of file class.ilSetup.php.
| ilSetup::__construct | ( | \ilSetupPasswordManager | $passwordManager, |
| $a_auth, | |||
| $a_auth_type | |||
| ) |
constructor
| $passwordManager | \ilSetupPasswordManager |
| boolean | user is authenticated? (true) or not (false) |
| string | user is admin or common user |
Definition at line 75 of file class.ilSetup.php.
References $lng, $passwordManager, checkAuth(), ilFile\deleteTrailingSlash(), and init().
Here is the call graph for this function:| ilSetup::_ilSetup | ( | ) |
destructor
Definition at line 1492 of file class.ilSetup.php.
| ilSetup::checkAccess | ( | & | $client | ) |
check client access status
| object | client |
Definition at line 789 of file class.ilSetup.php.
References $client.
Referenced by getStatus().
Here is the caller graph for this function:| ilSetup::checkAuth | ( | ) |
check authentication status
Definition at line 373 of file class.ilSetup.php.
References $_SESSION.
Referenced by __construct().
Here is the caller graph for this function:| ilSetup::checkClientContact | ( | & | $client | ) |
check client contact data status
| object | client |
Definition at line 996 of file class.ilSetup.php.
References $client, and ilUtil\is_email().
Referenced by getStatus().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSetup::checkClientDatabase | ( | ilClient | $client | ) |
| \ilClient | $client |
Definition at line 823 of file class.ilSetup.php.
References $client, and $ilDB.
Referenced by getStatus().
Here is the caller graph for this function:| ilSetup::checkClientIni | ( | & | $client | ) |
check client ini status
| object | client |
Definition at line 807 of file class.ilSetup.php.
References $client.
Referenced by getStatus().
Here is the caller graph for this function:| ilSetup::checkClientLanguages | ( | ilClient | $client | ) |
| \ilClient | $client |
Definition at line 973 of file class.ilSetup.php.
References $client.
Referenced by getStatus().
Here is the caller graph for this function:| ilSetup::checkClientNIC | ( | & | $client | ) |
check client nic status
| object | client |
Definition at line 1025 of file class.ilSetup.php.
References $client.
Referenced by getStatus().
Here is the caller graph for this function:| ilSetup::checkClientProxySettings | ( | ilClient | $client | ) |
| \ilClient | $client |
Definition at line 932 of file class.ilSetup.php.
References $client, $ilDB, $query, $res, and $row.
Referenced by getStatus().
Here is the caller graph for this function:| ilSetup::checkClientSessionSettings | ( | & | $client, |
$a_as_bool = false |
|||
| ) |
check client session config status
| object | client |
Definition at line 889 of file class.ilSetup.php.
References $db, $ilDB, $query, $res, $row, $rows, ilDBConstants\FETCHMODE_ASSOC, and ilSessionControl\getSettingFields().
Here is the call graph for this function:| ilSetup::checkCookiesEnabled | ( | ) |
check cookies enabled
Definition at line 317 of file class.ilSetup.php.
References $sess.
Referenced by queryPreliminaries().
Here is the caller graph for this function:| ilSetup::checkCreatable | ( | $a_dir = "." | ) |
check for permission to create new folders in specified directory
| string | directory |
Definition at line 294 of file class.ilSetup.php.
Referenced by queryPreliminaries().
Here is the caller graph for this function:| ilSetup::checkDataDirSetup | ( | $a_formdata | ) |
check datadir path
| array | form data |
Definition at line 1341 of file class.ilSetup.php.
References ilFile\deleteTrailingSlash(), error(), isDirectoryInOther(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilSetup::checkDom | ( | ) |
Check MySQL.
Definition at line 387 of file class.ilSetup.php.
References $ilDB.
Referenced by queryPreliminaries().
Here is the caller graph for this function:| ilSetup::checkErrorLogSetup | ( | $error_log_path | ) |
check error log path
| string | $error_log_path | path to save error log files |
Definition at line 1456 of file class.ilSetup.php.
References ilFile\deleteTrailingSlash(), error(), ilUtil\makeDirParents(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilSetup::checkFinish | ( | & | $client | ) |
check if client setup was finished
| object | client |
Definition at line 771 of file class.ilSetup.php.
References $client.
Referenced by getStatus().
Here is the caller graph for this function:| ilSetup::checkGd | ( | ) |
Check MySQL.
Definition at line 426 of file class.ilSetup.php.
References $ilDB.
Referenced by queryPreliminaries().
Here is the caller graph for this function:| ilSetup::checkIniFileExists | ( | ) |
check if inifile exists
Definition at line 257 of file class.ilSetup.php.
| ilSetup::checkLogSetup | ( | $a_formdata | ) |
check log path
| array | form data |
Definition at line 1418 of file class.ilSetup.php.
References ilFile\deleteTrailingSlash(), error(), isDirectoryInOther(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilSetup::checkMemoryLimit | ( | ) |
Check Memory Limit.
Definition at line 447 of file class.ilSetup.php.
References $ilDB.
Referenced by queryPreliminaries().
Here is the caller graph for this function:| ilSetup::checkMySQL | ( | ) |
Check MySQL.
Definition at line 354 of file class.ilSetup.php.
References $ilDB.
|
protected |
Definition at line 476 of file class.ilSetup.php.
Referenced by queryPreliminaries().
Here is the caller graph for this function:| ilSetup::checkPasswordSetup | ( | $a_formdata | ) |
check setup password
| array | form data |
Definition at line 1398 of file class.ilSetup.php.
References error().
Here is the call graph for this function:| ilSetup::checkPHPVersion | ( | ) |
check for PHP version
Definition at line 336 of file class.ilSetup.php.
References $version.
Referenced by queryPreliminaries().
Here is the caller graph for this function:| ilSetup::checkPreliminaries | ( | ) |
check all prliminaries
Definition at line 529 of file class.ilSetup.php.
References queryPreliminaries().
Here is the call graph for this function:| ilSetup::checkToolsSetup | ( | $a_formdata | ) |
check pathes to 3rd party software
| array | form data |
Definition at line 1220 of file class.ilSetup.php.
References error(), ilUtil\stripSlashes(), testConvert(), testGhostscript(), testJava(), testLatex(), testUnzip(), and testZip().
Here is the call graph for this function:| ilSetup::checkWritable | ( | ) |
check for writable directory
| string | directory |
Definition at line 268 of file class.ilSetup.php.
Referenced by queryPreliminaries().
Here is the caller graph for this function:| ilSetup::checkXsl | ( | ) |
Check MySQL.
Definition at line 405 of file class.ilSetup.php.
References $ilDB.
Referenced by queryPreliminaries().
Here is the caller graph for this function:| ilSetup::cloneFromSource | ( | $source_id | ) |
Clone source client into current client.
| array | form data |
Definition at line 1866 of file class.ilSetup.php.
References $client, $error, $source, $target, ilUtil\delDir(), error(), ilUtil\makeDir(), and ilUtil\rCopy().
Here is the call graph for this function:| ilSetup::createDatabase | ( | $a_collation = "" | ) |
create client database
Definition at line 220 of file class.ilSetup.php.
References error().
Here is the call graph for this function:| ilSetup::getClient | ( | ) |
| ilSetup::getError | ( | ) |
get Error message
Definition at line 1475 of file class.ilSetup.php.
References $error, and error().
Here is the call graph for this function:| ilSetup::getMasterPassword | ( | ) |
Definition at line 546 of file class.ilSetup.php.
Referenced by verifyMasterPassword().
Here is the caller graph for this function:| ilSetup::getSessionSettings | ( | ) |
reads session settings from db
Definition at line 1805 of file class.ilSetup.php.
References $db, $query, $res, $row, ilSessionControl\DEFAULT_ALLOW_CLIENT_MAINTENANCE, ilSessionControl\DEFAULT_MAX_COUNT, ilSessionControl\DEFAULT_MAX_IDLE, ilSessionControl\DEFAULT_MAX_IDLE_AFTER_FIRST_REQUEST, ilSessionControl\DEFAULT_MIN_IDLE, ilDBConstants\FETCHMODE_ASSOC, and ilSessionControl\getSettingFields().
Here is the call graph for this function:| ilSetup::getStatus | ( | $client = 0 | ) |
coumpute client status
| string | client id |
Definition at line 726 of file class.ilSetup.php.
References $client, checkAccess(), checkClientContact(), checkClientDatabase(), checkClientIni(), checkClientLanguages(), checkClientNIC(), checkClientProxySettings(), and checkFinish().
Here is the call graph for this function:| ilSetup::hasOpCacheEnabled | ( | ) |
Definition at line 2034 of file class.ilSetup.php.
Referenced by queryPreliminaries().
Here is the caller graph for this function:| ilSetup::init | ( | ) |
init setup load settings from ilias.ini if exists and sets some constants
Definition at line 152 of file class.ilSetup.php.
References error().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSetup::installDatabase | ( | ) |
set the database data
Definition at line 237 of file class.ilSetup.php.
| ilSetup::isAdmin | ( | ) |
check if current user is admin
Definition at line 1076 of file class.ilSetup.php.
| ilSetup::isAuthenticated | ( | ) |
check if current user is authenticated
Definition at line 1067 of file class.ilSetup.php.
References $auth.
|
protected |
Checks if directory is subdirectory of other directory.
| string | $directory | |
| string | $other_directory |
Definition at line 2062 of file class.ilSetup.php.
Referenced by checkDataDirSetup(), and checkLogSetup().
Here is the caller graph for this function:| ilSetup::isInstalled | ( | ) |
check if client's db is installed
Definition at line 1058 of file class.ilSetup.php.
References $ini_ilias_exists.
Referenced by newClient().
Here is the caller graph for this function:| ilSetup::isValidClientId | ( | $a_client_id | ) |
Is valid client id.
return
Definition at line 2047 of file class.ilSetup.php.
| ilSetup::loginAsAdmin | ( | string | $raw | ) |
Process setup admin login.
| string | $raw |
Definition at line 680 of file class.ilSetup.php.
References $_SESSION, and storeMasterPassword().
Here is the call graph for this function:| ilSetup::loginAsClient | ( | $a_auth_data | ) |
process client login
| array |
Definition at line 590 of file class.ilSetup.php.
References $_SESSION, $data, $ilDB, $r, $user, error(), ilUserPasswordManager\getInstance(), IL_PASSWD_CRYPTED, and newClient().
Here is the call graph for this function:| ilSetup::newClient | ( | $a_client_id = 0 | ) |
creates a client object in $this->client
| string | client id |
Definition at line 701 of file class.ilSetup.php.
References $_SESSION, error(), and isInstalled().
Referenced by loginAsClient().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSetup::printProxyStatus | ( | $client | ) |
Print proxy settings.
@access private
Definition at line 1962 of file class.ilSetup.php.
References $client, and ilUtil\sendFailure().
Here is the call graph for this function:| ilSetup::queryPreliminaries | ( | ) |
preliminaries
check if different things are ok for setting up ilias @access private
Definition at line 505 of file class.ilSetup.php.
References checkCookiesEnabled(), checkCreatable(), checkDom(), checkGd(), checkMemoryLimit(), checkOpcacheSettings(), checkPHPVersion(), checkWritable(), checkXsl(), and hasOpCacheEnabled().
Referenced by checkPreliminaries().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSetup::saveMasterSetup | ( | $a_formdata | ) |
saves intial settings
| array | form data |
Definition at line 1086 of file class.ilSetup.php.
References $_SESSION, ilFile\deleteTrailingSlash(), error(), ilUtil\makeDir(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilSetup::saveNewClient | ( | ) |
saves client.ini & updates client list in ilias.ini
Definition at line 176 of file class.ilSetup.php.
References $_SESSION, and error().
Referenced by updateNewClient().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSetup::saveProxySettings | ( | $proxy_settings | ) |
Definition at line 1987 of file class.ilSetup.php.
| ilSetup::setClient | ( | $a_cl | ) |
| $a_cl |
Definition at line 133 of file class.ilSetup.php.
| ilSetup::setSessionSettings | ( | $session_settings | ) |
saves session settings to db
| array | $session_settings |
Definition at line 1742 of file class.ilSetup.php.
References $db, $i, $message, $query, $res, $row, ilDBConstants\FETCHMODE_ASSOC, ilSessionControl\getSettingFields(), and ilUtil\sendInfo().
Here is the call graph for this function:| ilSetup::storeMasterPassword | ( | string | $raw | ) |
| string | $raw |
Definition at line 555 of file class.ilSetup.php.
References error().
Referenced by loginAsAdmin(), and verifyMasterPassword().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSetup::testConvert | ( | $a_convert_path | ) |
Check convert program.
| string | convert path |
Definition at line 1507 of file class.ilSetup.php.
Referenced by checkToolsSetup().
Here is the caller graph for this function:| ilSetup::testGhostscript | ( | $a_ghostscript_path | ) |
Check ghostscript program.
| string | ghostscript path |
Definition at line 1525 of file class.ilSetup.php.
Referenced by checkToolsSetup().
Here is the caller graph for this function:| ilSetup::testJava | ( | $a_java_path | ) |
Check JVM.
| string | java path |
Definition at line 1544 of file class.ilSetup.php.
Referenced by checkToolsSetup().
Here is the caller graph for this function:| ilSetup::testLatex | ( | $a_latex_url | ) |
Check latex cgi script.
| string | latex cgi url |
Definition at line 1571 of file class.ilSetup.php.
References $http, $result, and ilUtil\stripSlashes().
Referenced by checkToolsSetup().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSetup::testUnzip | ( | $a_unzip_path | ) |
Check unzip program.
| string | unzip_path |
Definition at line 1647 of file class.ilSetup.php.
Referenced by checkToolsSetup().
Here is the caller graph for this function:| ilSetup::testZip | ( | $a_zip_path | ) |
Check zip program.
| string | zip path |
Definition at line 1596 of file class.ilSetup.php.
Referenced by checkToolsSetup().
Here is the caller graph for this function:| ilSetup::unzip | ( | $a_file, | |
$overwrite = false |
|||
| ) |
unzip file
| string | $a_file | full path/filename |
| boolean | $overwrite | pass true to overwrite existing files |
Definition at line 1690 of file class.ilSetup.php.
References ilUtil\createDirectory(), and ilUtil\escapeShellArg().
Here is the call graph for this function:| ilSetup::updateMasterSettings | ( | $a_formdata | ) |
updates settings
| array | form data |
Definition at line 1157 of file class.ilSetup.php.
References ilFile\deleteTrailingSlash(), error(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilSetup::updateNewClient | ( | $a_old_client_id | ) |
update client.ini & move data dirs does not work correctly at this time - DISABLED
Definition at line 198 of file class.ilSetup.php.
References ilUtil\delDir(), and saveNewClient().
Here is the call graph for this function:| ilSetup::verifyMasterPassword | ( | string | $raw | ) |
| string | $raw |
Definition at line 572 of file class.ilSetup.php.
References getMasterPassword(), and storeMasterPassword().
Here is the call graph for this function:| ilSetup::$access_mode |
Definition at line 62 of file class.ilSetup.php.
| ilSetup::$auth |
Definition at line 61 of file class.ilSetup.php.
Referenced by isAuthenticated().
| ilSetup::$client |
Definition at line 127 of file class.ilSetup.php.
Referenced by checkAccess(), checkClientContact(), checkClientDatabase(), checkClientIni(), checkClientLanguages(), checkClientNIC(), checkClientProxySettings(), checkFinish(), cloneFromSource(), getClient(), getStatus(), and printProxyStatus().
| ilSetup::$db |
Definition at line 53 of file class.ilSetup.php.
Referenced by checkClientSessionSettings(), getSessionSettings(), saveProxySettings(), and setSessionSettings().
| ilSetup::$default_client |
Definition at line 56 of file class.ilSetup.php.
| ilSetup::$dsn = "" |
Definition at line 46 of file class.ilSetup.php.
| ilSetup::$error = "" |
Definition at line 23 of file class.ilSetup.php.
Referenced by cloneFromSource(), and getError().
| ilSetup::$ilias_nic_server = "https://nic.ilias.de/index.php" |
Definition at line 29 of file class.ilSetup.php.
| ilSetup::$ini |
Definition at line 21 of file class.ilSetup.php.
| ilSetup::$ini_client_exists = false |
Definition at line 26 of file class.ilSetup.php.
| ilSetup::$ini_file_path |
Definition at line 22 of file class.ilSetup.php.
| ilSetup::$ini_ilias_exists = false |
Definition at line 25 of file class.ilSetup.php.
Referenced by isInstalled().
|
protected |
Definition at line 67 of file class.ilSetup.php.
Referenced by __construct().
| ilSetup::$preliminaries = true |
Definition at line 32 of file class.ilSetup.php.
| ilSetup::$preliminaries_result = array() |
Definition at line 31 of file class.ilSetup.php.
| ilSetup::$safe_mode |
Definition at line 58 of file class.ilSetup.php.
| ilSetup::$safe_mode_exec_dir |
Definition at line 59 of file class.ilSetup.php.
| ilSetup::$setup_defaults |
Definition at line 28 of file class.ilSetup.php.
| ilSetup::$setup_password |
Definition at line 55 of file class.ilSetup.php.
| ilSetup::$SQL_FILE = "./setup/sql/ilias3.sql" |
Definition at line 39 of file class.ilSetup.php.