|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Client Management. More...
Collaboration diagram for ilClient:Public Member Functions | |
| __construct ($a_client_id) | |
| ilClient constructor. More... | |
| getDBSetup ($cached=true) | |
| 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 @access public More... | |
| setSetting ($a_key, $a_val) | |
| write one value to settings table @access 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 @access 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 | |
Protected Attributes | |
| $db_setup = null | |
| ilClient::__construct | ( | $a_client_id | ) |
ilClient constructor.
| $a_client_id |
Definition at line 48 of file class.ilClient.php.
References getId().
Here is the call graph for this function:| ilClient::checkDatabaseExists | ( | $a_keep_connection = false | ) |
check database connection with database name
Definition at line 545 of file class.ilClient.php.
References getDBSetup().
Here is the call graph for this function:| ilClient::connect | ( | ) |
connect to client database
Definition at line 211 of file class.ilClient.php.
References Vendor\Package\$c, $db, $GLOBALS, error(), and ilDBWrapperFactory\getWrapper().
Referenced by reconnect().
Here is the call graph for this function:
Here is the caller graph for this function:| ilClient::create | ( | ) |
create a new client and its subdirectories
Definition at line 792 of file class.ilClient.php.
References error(), getDataDir(), getWebspaceDir(), and ilUtil\makeDir().
Here is the call graph for this function:| 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 766 of file class.ilClient.php.
References ilUtil\delDir(), getDbName(), and getId().
Here is the call graph for this function:| ilClient::getAllSettings | ( | ) |
read all values from settings table @access public
Definition at line 580 of file class.ilClient.php.
Referenced by getURLStringForNIC().
Here is the caller graph for this function:| ilClient::getDataDir | ( | ) |
get client datadir path
Definition at line 526 of file class.ilClient.php.
References getId().
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:| ilClient::getDB | ( | ) |
| ilClient::getDbHost | ( | ) |
get db host
Definition at line 312 of file class.ilClient.php.
| ilClient::getDbName | ( | ) |
get name of database
Definition at line 330 of file class.ilClient.php.
Referenced by delete().
Here is the caller graph for this function:| ilClient::getDbPass | ( | ) |
get db password
Definition at line 384 of file class.ilClient.php.
| ilClient::getDbPort | ( | ) |
get db port
Definition at line 357 of file class.ilClient.php.
| ilClient::getDBSetup | ( | $cached = true | ) |
| bool | $cached |
Definition at line 64 of file class.ilClient.php.
References $db_setup, and ilDbSetup\getNewInstanceForClient().
Referenced by checkDatabaseExists(), getSetting(), init(), provideGlobalDB(), and revokeGlobalDB().
Here is the call graph for this function:
Here is the caller graph for this function:| ilClient::getDbSlaveActive | ( | ) |
get slave active
Definition at line 403 of file class.ilClient.php.
| ilClient::getDbSlaveHost | ( | ) |
get db slave host
Definition at line 422 of file class.ilClient.php.
| ilClient::getDbSlaveName | ( | ) |
get name of slave database
Definition at line 440 of file class.ilClient.php.
| ilClient::getDbSlavePass | ( | ) |
get slave db password
Definition at line 494 of file class.ilClient.php.
| ilClient::getDbSlavePort | ( | ) |
get slave db port
Definition at line 467 of file class.ilClient.php.
| ilClient::getDbSlaveUser | ( | ) |
get slave db user
Definition at line 458 of file class.ilClient.php.
| ilClient::getDbType | ( | ) |
get type of database
Definition at line 512 of file class.ilClient.php.
Referenced by setDSN().
Here is the caller graph for this function:| ilClient::getDbUser | ( | ) |
get db user
Definition at line 348 of file class.ilClient.php.
| ilClient::getDefaultLanguage | ( | ) |
Definition at line 721 of file class.ilClient.php.
References getSetting().
Here is the call graph for this function:| ilClient::getDescription | ( | ) |
get client description
Definition at line 177 of file class.ilClient.php.
| ilClient::getError | ( | ) |
get error message and clear error var
Definition at line 741 of file class.ilClient.php.
References $error, and error().
Here is the call graph for this function:| ilClient::getId | ( | ) |
get client id
Definition at line 140 of file class.ilClient.php.
References $id.
Referenced by __construct(), delete(), getDataDir(), getWebspaceDir(), and init().
Here is the caller graph for this function:| ilClient::getName | ( | ) |
get client name
Definition at line 159 of file class.ilClient.php.
| ilClient::getNICkey | ( | ) |
get nic_key @access public
Definition at line 710 of file class.ilClient.php.
References getSetting(), and setNICkey().
Referenced by getURLStringForNIC().
Here is the call graph for this function:
Here is the caller graph for this function:| ilClient::getSetting | ( | $a_keyword | ) |
read one value from settings table
@access public
| string | keyword |
Definition at line 563 of file class.ilClient.php.
References $ilDB, and getDBSetup().
Referenced by getDefaultLanguage(), and getNICkey().
Here is the call graph for this function:
Here is the caller graph for this function:| ilClient::getURLStringForNIC | ( | $a_nic_url | ) |
| string | url to ilias nic server |
Definition at line 605 of file class.ilClient.php.
References $_SERVER, $url, getAllSettings(), getNICkey(), and ILIAS_HTTP_PATH.
Referenced by updateNIC().
Here is the call graph for this function:
Here is the caller graph for this function:| ilClient::getWebspaceDir | ( | ) |
get client webspacedir path
Definition at line 535 of file class.ilClient.php.
References getId().
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:| ilClient::init | ( | ) |
init client load client.ini and set some constants
Definition at line 84 of file class.ilClient.php.
References error(), getDBSetup(), and getId().
Here is the call graph for this function:| ilClient::isInstalledDB | ( | & | $a_db | ) |
check if client db is installed
| object | db object |
Definition at line 252 of file class.ilClient.php.
| ilClient::provideGlobalDB | ( | ) |
Definition at line 125 of file class.ilClient.php.
References getDBSetup().
Here is the call graph for this function:| ilClient::reconnect | ( | ) |
Definition at line 550 of file class.ilClient.php.
References connect().
Here is the call graph for this function:| ilClient::revokeGlobalDB | ( | ) |
Definition at line 131 of file class.ilClient.php.
References getDBSetup().
Here is the call graph for this function:| ilClient::setDbHost | ( | $a_str | ) |
set the host
| string |
Definition at line 302 of file class.ilClient.php.
| ilClient::setDbName | ( | $a_str | ) |
set the name of database
| string |
Definition at line 321 of file class.ilClient.php.
| ilClient::setDbPass | ( | $a_str | ) |
set db password
| string |
Definition at line 375 of file class.ilClient.php.
| ilClient::setDbPort | ( | $a_str | ) |
set db port
| string |
Definition at line 366 of file class.ilClient.php.
| ilClient::setDbSlaveActive | ( | $a_act | ) |
set the slave active
| int |
Definition at line 393 of file class.ilClient.php.
| ilClient::setDbSlaveHost | ( | $a_str | ) |
set the slave host
| string |
Definition at line 412 of file class.ilClient.php.
| ilClient::setDbSlaveName | ( | $a_str | ) |
set the name of slave database
| string |
Definition at line 431 of file class.ilClient.php.
| ilClient::setDbSlavePass | ( | $a_str | ) |
set slave db password
| string |
Definition at line 485 of file class.ilClient.php.
| ilClient::setDbSlavePort | ( | $a_str | ) |
set slave db port
| string |
Definition at line 476 of file class.ilClient.php.
| ilClient::setDbSlaveUser | ( | $a_str | ) |
set slave db user
| string | db user |
Definition at line 449 of file class.ilClient.php.
| ilClient::setDbType | ( | $a_str | ) |
set the type of database
| string |
Definition at line 503 of file class.ilClient.php.
| ilClient::setDbUser | ( | $a_str | ) |
set db user
| string | db user |
Definition at line 339 of file class.ilClient.php.
| ilClient::setDefaultLanguage | ( | $a_lang_key | ) |
Definition at line 726 of file class.ilClient.php.
References setSetting().
Here is the call graph for this function:| ilClient::setDescription | ( | $a_str | ) |
set client description
| string | client description |
Definition at line 186 of file class.ilClient.php.
| ilClient::setDSN | ( | ) |
set the dsn and dsn_host
Definition at line 273 of file class.ilClient.php.
References getDbType().
Here is the call graph for this function:| ilClient::setError | ( | $error_message | ) |
| $error_message |
Definition at line 753 of file class.ilClient.php.
References error().
Referenced by updateNIC().
Here is the call graph for this function:
Here is the caller graph for this function:| ilClient::setId | ( | $a_client_id | ) |
set client id
| string | client id |
Definition at line 149 of file class.ilClient.php.
References $id.
| ilClient::setName | ( | $a_str | ) |
set client name
| string | client name |
Definition at line 168 of file class.ilClient.php.
| 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. @access public
Definition at line 692 of file class.ilClient.php.
References $_SERVER, and setSetting().
Referenced by getNICkey().
Here is the call graph for this function:
Here is the caller graph for this function:| ilClient::setSetting | ( | $a_key, | |
| $a_val | |||
| ) |
write one value to settings table @access public
| string | keyword |
| string | value |
Definition at line 594 of file class.ilClient.php.
Referenced by setDefaultLanguage(), and setNICkey().
Here is the caller graph for this function:| 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 643 of file class.ilClient.php.
References $GLOBALS, XapiProxy\$req, $response, $url, ilCurlConnection\_isCurlExtensionLoaded(), ilLoggerFactory\getLogger(), getURLStringForNIC(), and setError().
Here is the call graph for this function:| ilClient::writeIni | ( | ) |
write init
return
Definition at line 864 of file class.ilClient.php.
| ilClient::$client_defaults |
Definition at line 20 of file class.ilClient.php.
| ilClient::$db |
Definition at line 31 of file class.ilClient.php.
| 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.
|
protected |
Definition at line 40 of file class.ilClient.php.
Referenced by getDBSetup().
| 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.
| ilClient::$setup_ok = false |
Definition at line 22 of file class.ilClient.php.
| ilClient::$status |
Definition at line 21 of file class.ilClient.php.