ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Client Management. More...
Public Member Functions | |
__construct ($a_client_id, $a_db_connections) | |
ilClient constructor. More... | |
getDBSetup () | |
init () | |
init client load client.ini and set some constants More... | |
provideGlobalDB () | |
revokeGlobalDB () | |
getId () | |
get client id More... | |
setId ($a_client_id) | |
set client id More... | |
getName () | |
get client name More... | |
setName ($a_str) | |
set client name More... | |
getDescription () | |
get client description More... | |
setDescription ($a_str) | |
set client description More... | |
getDB () | |
get mysql version More... | |
connect () | |
connect to client database More... | |
isInstalledDB (&$a_db) | |
check if client db is installed More... | |
setDSN () | |
set the dsn and dsn_host More... | |
setDbHost ($a_str) | |
set the host More... | |
getDbHost () | |
get db host More... | |
setDbName ($a_str) | |
set the name of database More... | |
getDbName () | |
get name of database More... | |
setDbUser ($a_str) | |
set db user More... | |
getDbUser () | |
get db user More... | |
getDbPort () | |
get db port More... | |
setDbPort ($a_str) | |
set db port More... | |
setDbPass ($a_str) | |
set db password More... | |
getDbPass () | |
get db password More... | |
setDbSlaveActive ($a_act) | |
set the slave active More... | |
getDbSlaveActive () | |
get slave active More... | |
setDbSlaveHost ($a_str) | |
set the slave host More... | |
getDbSlaveHost () | |
get db slave host More... | |
setDbSlaveName ($a_str) | |
set the name of slave database More... | |
getDbSlaveName () | |
get name of slave database More... | |
setDbSlaveUser ($a_str) | |
set slave db user More... | |
getDbSlaveUser () | |
get slave db user More... | |
getDbSlavePort () | |
get slave db port More... | |
setDbSlavePort ($a_str) | |
set slave db port More... | |
setDbSlavePass ($a_str) | |
set slave db password More... | |
getDbSlavePass () | |
get slave db password More... | |
setDbType ($a_str) | |
set the type of database More... | |
getDbType () | |
get type of database More... | |
getDataDir () | |
get client datadir path More... | |
getWebspaceDir () | |
get client webspacedir path More... | |
checkDatabaseExists ($a_keep_connection=false) | |
check database connection with database name More... | |
reconnect () | |
getSetting ($a_keyword) | |
read one value from settings table More... | |
getAllSettings () | |
read all values from settings table public More... | |
setSetting ($a_key, $a_val) | |
write one value to settings table public More... | |
getURLStringForNIC ($a_nic_url) | |
updateNIC ($a_nic_url) | |
Connect to ILIAS-NIC. More... | |
setNICkey () | |
set nic_key generate nic_key if nic_key field in cust table is empty. More... | |
getNICkey () | |
get nic_key public More... | |
getDefaultLanguage () | |
setDefaultLanguage ($a_lang_key) | |
getError () | |
get error message and clear error var More... | |
setError ($error_message) | |
delete ($a_ini=true, $a_db=false, $a_files=false) | |
delete client More... | |
create () | |
create a new client and its subdirectories More... | |
writeIni () | |
write init More... | |
Data Fields | |
$id | |
$dir | |
$name | |
$db_exists = false | |
$db_installed = false | |
$client_defaults | |
$status | |
$setup_ok = false | |
$nic_status | |
$error = '' | |
$db | |
$ini | |
ilClient::__construct | ( | $a_client_id, | |
$a_db_connections | |||
) |
ilClient constructor.
$a_client_id | |
$a_db_connections |
Definition at line 44 of file class.ilClient.php.
References getId().
ilClient::checkDatabaseExists | ( | $a_keep_connection = false | ) |
check database connection with database name
Definition at line 558 of file class.ilClient.php.
References $db, $GLOBALS, getDBSetup(), MDB2\isError(), and isInstalledDB().
ilClient::connect | ( | ) |
connect to client database
Definition at line 200 of file class.ilClient.php.
Referenced by reconnect().
ilClient::create | ( | ) |
create a new client and its subdirectories
Definition at line 828 of file class.ilClient.php.
References getDataDir(), getWebspaceDir(), and ilUtil\makeDir().
ilClient::delete | ( | $a_ini = true , |
|
$a_db = false , |
|||
$a_files = false |
|||
) |
delete client
boolean | remove ini if true |
boolean | remove db if true |
boolean | remove files if true |
Definition at line 802 of file class.ilClient.php.
References ilUtil\delDir(), getDbName(), and getId().
ilClient::getAllSettings | ( | ) |
read all values from settings table public
Definition at line 613 of file class.ilClient.php.
Referenced by getURLStringForNIC(), and updateNIC().
ilClient::getDataDir | ( | ) |
get client datadir path
Definition at line 539 of file class.ilClient.php.
References getId().
Referenced by create().
ilClient::getDB | ( | ) |
ilClient::getDbHost | ( | ) |
ilClient::getDbName | ( | ) |
get name of database
Definition at line 343 of file class.ilClient.php.
Referenced by delete().
ilClient::getDbPass | ( | ) |
ilClient::getDbPort | ( | ) |
ilClient::getDBSetup | ( | ) |
Definition at line 61 of file class.ilClient.php.
References ilDbSetup\getInstanceForClient().
Referenced by checkDatabaseExists(), getSetting(), init(), provideGlobalDB(), and revokeGlobalDB().
ilClient::getDbSlaveActive | ( | ) |
ilClient::getDbSlaveHost | ( | ) |
ilClient::getDbSlaveName | ( | ) |
get name of slave database
Definition at line 453 of file class.ilClient.php.
ilClient::getDbSlavePass | ( | ) |
ilClient::getDbSlavePort | ( | ) |
ilClient::getDbSlaveUser | ( | ) |
ilClient::getDbType | ( | ) |
get type of database
Definition at line 525 of file class.ilClient.php.
Referenced by ilDbSetup\__construct(), and setDSN().
ilClient::getDbUser | ( | ) |
ilClient::getDefaultLanguage | ( | ) |
Definition at line 757 of file class.ilClient.php.
References getSetting().
ilClient::getDescription | ( | ) |
get client description
Definition at line 166 of file class.ilClient.php.
ilClient::getError | ( | ) |
get error message and clear error var
Definition at line 777 of file class.ilClient.php.
References $error.
ilClient::getId | ( | ) |
get client id
Definition at line 129 of file class.ilClient.php.
References $id.
Referenced by __construct(), delete(), getDataDir(), ilDbSetup\getInstanceForClient(), getWebspaceDir(), and init().
ilClient::getName | ( | ) |
ilClient::getNICkey | ( | ) |
get nic_key public
Definition at line 746 of file class.ilClient.php.
References getSetting(), and setNICkey().
Referenced by getURLStringForNIC().
ilClient::getSetting | ( | $a_keyword | ) |
read one value from settings table
public
string | keyword |
Definition at line 596 of file class.ilClient.php.
References $ilDB, and getDBSetup().
Referenced by ilSetup\checkClientDatabase(), getDefaultLanguage(), and getNICkey().
ilClient::getURLStringForNIC | ( | $a_nic_url | ) |
string | url to ilias nic server |
Definition at line 638 of file class.ilClient.php.
References $_SERVER, $url, getAllSettings(), and getNICkey().
Referenced by updateNIC().
ilClient::getWebspaceDir | ( | ) |
get client webspacedir path
Definition at line 548 of file class.ilClient.php.
References getId().
Referenced by create().
ilClient::init | ( | ) |
init client load client.ini and set some constants
Definition at line 73 of file class.ilClient.php.
References getDBSetup(), and getId().
ilClient::isInstalledDB | ( | & | $a_db | ) |
check if client db is installed
object | db object |
Definition at line 245 of file class.ilClient.php.
Referenced by checkDatabaseExists().
ilClient::provideGlobalDB | ( | ) |
Definition at line 114 of file class.ilClient.php.
References getDBSetup().
Referenced by ilSetup\checkClientDatabase(), ilSetup\checkClientLanguages(), and ilSetup\checkClientProxySettings().
ilClient::reconnect | ( | ) |
Definition at line 583 of file class.ilClient.php.
References connect().
ilClient::revokeGlobalDB | ( | ) |
Definition at line 120 of file class.ilClient.php.
References getDBSetup().
Referenced by ilSetup\checkClientDatabase(), and ilSetup\checkClientLanguages().
ilClient::setDbHost | ( | $a_str | ) |
ilClient::setDbName | ( | $a_str | ) |
ilClient::setDbPass | ( | $a_str | ) |
ilClient::setDbPort | ( | $a_str | ) |
ilClient::setDbSlaveActive | ( | $a_act | ) |
ilClient::setDbSlaveHost | ( | $a_str | ) |
ilClient::setDbSlaveName | ( | $a_str | ) |
ilClient::setDbSlavePass | ( | $a_str | ) |
ilClient::setDbSlavePort | ( | $a_str | ) |
ilClient::setDbSlaveUser | ( | $a_str | ) |
ilClient::setDbType | ( | $a_str | ) |
ilClient::setDbUser | ( | $a_str | ) |
ilClient::setDefaultLanguage | ( | $a_lang_key | ) |
Definition at line 762 of file class.ilClient.php.
References setSetting().
ilClient::setDescription | ( | $a_str | ) |
set client description
string | client description |
Definition at line 175 of file class.ilClient.php.
ilClient::setDSN | ( | ) |
set the dsn and dsn_host
Definition at line 266 of file class.ilClient.php.
References array, and getDbType().
ilClient::setError | ( | $error_message | ) |
$error_message |
Definition at line 789 of file class.ilClient.php.
Referenced by updateNIC().
ilClient::setId | ( | $a_client_id | ) |
set client id
string | client id |
Definition at line 138 of file class.ilClient.php.
References $id.
ilClient::setName | ( | $a_str | ) |
ilClient::setNICkey | ( | ) |
set nic_key generate nic_key if nic_key field in cust table is empty.
the nic_key is used for authentication update requests sent to the ILIAS-NIC server. public
Definition at line 728 of file class.ilClient.php.
References $_SERVER, and setSetting().
Referenced by getNICkey().
ilClient::setSetting | ( | $a_key, | |
$a_val | |||
) |
write one value to settings table public
string | keyword |
string | value |
Definition at line 627 of file class.ilClient.php.
Referenced by setDefaultLanguage(), and setNICkey().
ilClient::updateNIC | ( | $a_nic_url | ) |
Connect to ILIAS-NIC.
This function establishes a HTTP connection to the ILIAS Network Information Center (NIC) in order to update the ILIAS-NIC host database and - in case of a newly installed system - obtain an installation id at first connection. This function my be put into a dedicated include file as soon as there are more functions concerning the interconnection of ILIAS hosts
void |
Definition at line 676 of file class.ilClient.php.
References $info, $nic_status, $req, $response, $url, ilCurlConnection\_isCurlExtensionLoaded(), getAllSettings(), ilLoggerFactory\getLogger(), getURLStringForNIC(), and setError().
ilClient::writeIni | ( | ) |
ilClient::$client_defaults |
Definition at line 20 of file class.ilClient.php.
ilClient::$db |
Definition at line 31 of file class.ilClient.php.
Referenced by checkDatabaseExists(), connect(), and getDB().
ilClient::$db_exists = false |
Definition at line 17 of file class.ilClient.php.
ilClient::$db_installed = false |
Definition at line 18 of file class.ilClient.php.
ilClient::$dir |
Definition at line 15 of file class.ilClient.php.
ilClient::$error = '' |
Definition at line 27 of file class.ilClient.php.
Referenced by getError().
ilClient::$id |
Definition at line 14 of file class.ilClient.php.
ilClient::$ini |
Definition at line 35 of file class.ilClient.php.
ilClient::$name |
Definition at line 16 of file class.ilClient.php.
ilClient::$nic_status |
Definition at line 23 of file class.ilClient.php.
Referenced by updateNIC().
ilClient::$setup_ok = false |
Definition at line 22 of file class.ilClient.php.
ilClient::$status |
Definition at line 21 of file class.ilClient.php.