|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Client Management. More...
Collaboration diagram for ilClient: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 @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 | |
| 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().
Here is the call graph for this function:| ilClient::checkDatabaseExists | ( | $a_keep_connection = false | ) |
check database connection with database name
Definition at line 559 of file class.ilClient.php.
References $db, $GLOBALS, getDBSetup(), MDB2\isError(), and isInstalledDB().
Here is the call graph for this function:| ilClient::connect | ( | ) |
connect to client database
Definition at line 198 of file class.ilClient.php.
References $db, $GLOBALS, and error().
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 834 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 805 of file class.ilClient.php.
References ilUtil\delDir(), and getDbName().
Here is the call graph for this function:| ilClient::getAllSettings | ( | ) |
read all values from settings table @access public
Definition at line 616 of file class.ilClient.php.
Referenced by getURLStringForNIC(), and updateNIC().
Here is the caller graph for this function:| ilClient::getDataDir | ( | ) |
get client datadir path
Definition at line 540 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 323 of file class.ilClient.php.
| ilClient::getDbName | ( | ) |
get name of database
Definition at line 341 of file class.ilClient.php.
Referenced by delete().
Here is the caller graph for this function:| ilClient::getDbPass | ( | ) |
get db password
Definition at line 395 of file class.ilClient.php.
| ilClient::getDbPort | ( | ) |
get db port
Definition at line 368 of file class.ilClient.php.
| ilClient::getDBSetup | ( | ) |
Definition at line 62 of file class.ilClient.php.
References ilDbSetup\getInstanceForClient().
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 414 of file class.ilClient.php.
| ilClient::getDbSlaveHost | ( | ) |
get db slave host
Definition at line 433 of file class.ilClient.php.
| ilClient::getDbSlaveName | ( | ) |
get name of slave database
Definition at line 451 of file class.ilClient.php.
| ilClient::getDbSlavePass | ( | ) |
get slave db password
Definition at line 505 of file class.ilClient.php.
| ilClient::getDbSlavePort | ( | ) |
get slave db port
Definition at line 478 of file class.ilClient.php.
| ilClient::getDbSlaveUser | ( | ) |
get slave db user
Definition at line 469 of file class.ilClient.php.
| ilClient::getDbType | ( | ) |
get type of database
Definition at line 523 of file class.ilClient.php.
Referenced by setDSN().
Here is the caller graph for this function:| ilClient::getDbUser | ( | ) |
get db user
Definition at line 359 of file class.ilClient.php.
| ilClient::getDefaultLanguage | ( | ) |
Definition at line 762 of file class.ilClient.php.
References getSetting().
Here is the call graph for this function:| ilClient::getDescription | ( | ) |
get client description
Definition at line 164 of file class.ilClient.php.
| ilClient::getError | ( | ) |
get error message and clear error var
Definition at line 782 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 127 of file class.ilClient.php.
References $id.
Referenced by __construct(), getDataDir(), getWebspaceDir(), and init().
Here is the caller graph for this function:| ilClient::getName | ( | ) |
get client name
Definition at line 146 of file class.ilClient.php.
| ilClient::getNICkey | ( | ) |
get nic_key @access public
Definition at line 750 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 600 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 641 of file class.ilClient.php.
References $_SERVER, $url, getAllSettings(), and getNICkey().
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 549 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 73 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 237 of file class.ilClient.php.
Referenced by checkDatabaseExists().
Here is the caller graph for this function:| ilClient::provideGlobalDB | ( | ) |
Definition at line 114 of file class.ilClient.php.
References getDBSetup().
Here is the call graph for this function:| ilClient::reconnect | ( | ) |
Definition at line 587 of file class.ilClient.php.
References connect().
Here is the call graph for this function:| ilClient::revokeGlobalDB | ( | ) |
Definition at line 119 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 313 of file class.ilClient.php.
| ilClient::setDbName | ( | $a_str | ) |
set the name of database
| string |
Definition at line 332 of file class.ilClient.php.
| ilClient::setDbPass | ( | $a_str | ) |
set db password
| string |
Definition at line 386 of file class.ilClient.php.
| ilClient::setDbPort | ( | $a_str | ) |
set db port
| string |
Definition at line 377 of file class.ilClient.php.
| ilClient::setDbSlaveActive | ( | $a_act | ) |
set the slave active
| int |
Definition at line 404 of file class.ilClient.php.
| ilClient::setDbSlaveHost | ( | $a_str | ) |
set the slave host
| string |
Definition at line 423 of file class.ilClient.php.
| ilClient::setDbSlaveName | ( | $a_str | ) |
set the name of slave database
| string |
Definition at line 442 of file class.ilClient.php.
| ilClient::setDbSlavePass | ( | $a_str | ) |
set slave db password
| string |
Definition at line 496 of file class.ilClient.php.
| ilClient::setDbSlavePort | ( | $a_str | ) |
set slave db port
| string |
Definition at line 487 of file class.ilClient.php.
| ilClient::setDbSlaveUser | ( | $a_str | ) |
set slave db user
| string | db user |
Definition at line 460 of file class.ilClient.php.
| ilClient::setDbType | ( | $a_str | ) |
set the type of database
| string |
Definition at line 514 of file class.ilClient.php.
| ilClient::setDbUser | ( | $a_str | ) |
set db user
| string | db user |
Definition at line 350 of file class.ilClient.php.
| ilClient::setDefaultLanguage | ( | $a_lang_key | ) |
Definition at line 767 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 173 of file class.ilClient.php.
| ilClient::setDSN | ( | ) |
set the dsn and dsn_host
Definition at line 261 of file class.ilClient.php.
References getDbType().
Here is the call graph for this function:| ilClient::setError | ( | $error_message | ) |
| $error_message |
Definition at line 793 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 136 of file class.ilClient.php.
References $id.
| ilClient::setName | ( | $a_str | ) |
set client name
| string | client name |
Definition at line 155 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 732 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 630 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 679 of file class.ilClient.php.
References $info, $nic_status, $url, ilCurlConnection\_isCurlExtensionLoaded(), getAllSettings(), ilLoggerFactory\getLogger(), getURLStringForNIC(), and setError().
Here is the call graph for this function:| ilClient::writeIni | ( | ) |
write init
return
Definition at line 917 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.
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.