| ILIAS
    Release_4_3_x_branch Revision 61807
    | 
Client Management. More...
 Collaboration diagram for ilClient:
 Collaboration diagram for ilClient:| Public Member Functions | |
| ilClient ($a_client_id, $a_db_connections) | |
| Constructor. | |
| init () | |
| init client load client.ini and set some constants | |
| getId () | |
| get client id | |
| setId ($a_client_id) | |
| set client id | |
| getName () | |
| get client name | |
| setName ($a_str) | |
| set client name | |
| getDescription () | |
| get client description | |
| setDescription ($a_str) | |
| set client description | |
| getDB () | |
| get mysql version | |
| connect () | |
| connect to client database | |
| isInstalledDB (&$a_db) | |
| check if client db is installed | |
| setDSN () | |
| set the dsn and dsn_host | |
| setDbHost ($a_str) | |
| set the host | |
| getDbHost () | |
| get db host | |
| setDbName ($a_str) | |
| set the name of database | |
| getDbName () | |
| get name of database | |
| setDbUser ($a_str) | |
| set db user | |
| getDbUser () | |
| get db user | |
| getDbPort () | |
| get db port | |
| setDbPort ($a_str) | |
| set db port | |
| setDbPass ($a_str) | |
| set db password | |
| getDbPass () | |
| get db password | |
| setDbType ($a_str) | |
| set the type of database | |
| getDbType () | |
| get type of database | |
| getDataDir () | |
| get client datadir path | |
| getWebspaceDir () | |
| get client webspacedir path | |
| checkDatabaseHost () | |
| check database connection | |
| checkDatabaseExists ($a_keep_connection=false) | |
| check database connection with database name | |
| reconnect () | |
| getSetting ($a_keyword) | |
| read one value from settings table  public | |
| getAllSettings () | |
| read all values from settings table  public | |
| setSetting ($a_key, $a_val) | |
| write one value to settings table  public | |
| getURLStringForNIC ($a_nic_url) | |
| updateNIC ($a_nic_url) | |
| Connect to ILIAS-NIC. | |
| setNICkey () | |
| set nic_key generate nic_key if nic_key field in cust table is empty. | |
| getNICkey () | |
| get nic_key  public | |
| getDefaultLanguage () | |
| setDefaultLanguage ($a_lang_key) | |
| getError () | |
| get error message and clear error var | |
| delete ($a_ini=true, $a_db=false, $a_files=false) | |
| delete client | |
| create () | |
| create a new client and its subdirectories | |
| Data Fields | |
| $id | |
| $dir | |
| $name | |
| $db_exists = false | |
| $db_installed = false | |
| $client_defaults | |
| $status | |
| $setup_ok = false | |
| $nic_status | |
Client Management.
Definition at line 12 of file class.ilClient.php.
| ilClient::checkDatabaseExists | ( | $a_keep_connection = false | ) | 
check database connection with database name
Definition at line 442 of file class.ilClient.php.
References $GLOBALS, MDB2\isError(), and isInstalledDB().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilClient::checkDatabaseHost | ( | ) | 
check database connection
Definition at line 417 of file class.ilClient.php.
References $lng, getDbType(), and MDB2\isError().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilClient::connect | ( | ) | 
connect to client database
Definition at line 163 of file class.ilClient.php.
References $GLOBALS, and ilDBWrapperFactory\getWrapper().
Referenced by init(), and reconnect().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilClient::create | ( | ) | 
create a new client and its subdirectories
Definition at line 691 of file class.ilClient.php.
References getDataDir(), getWebspaceDir(), and ilUtil\makeDir().
 Here is the call graph for this function:
 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 662 of file class.ilClient.php.
References ilUtil\delDir(), getDbName(), ILIAS_ABSOLUTE_PATH, and ILIAS_WEB_DIR.
 Here is the call graph for this function:
 Here is the call graph for this function:| ilClient::getAllSettings | ( | ) | 
read all values from settings table public
Definition at line 488 of file class.ilClient.php.
Referenced by getURLStringForNIC(), and updateNIC().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilClient::getDataDir | ( | ) | 
get client datadir path
Definition at line 399 of file class.ilClient.php.
References getId().
Referenced by create().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilClient::getDB | ( | ) | 
get mysql version
Get DB object
Definition at line 154 of file class.ilClient.php.
| ilClient::getDbHost | ( | ) | 
get db host
Definition at line 292 of file class.ilClient.php.
| ilClient::getDbName | ( | ) | 
get name of database
Definition at line 310 of file class.ilClient.php.
Referenced by delete().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilClient::getDbPass | ( | ) | 
get db password
Definition at line 364 of file class.ilClient.php.
| ilClient::getDbPort | ( | ) | 
get db port
Definition at line 337 of file class.ilClient.php.
| ilClient::getDbType | ( | ) | 
get type of database
Definition at line 382 of file class.ilClient.php.
Referenced by checkDatabaseHost(), and setDSN().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilClient::getDbUser | ( | ) | 
get db user
Definition at line 328 of file class.ilClient.php.
| ilClient::getDefaultLanguage | ( | ) | 
Definition at line 628 of file class.ilClient.php.
References getSetting().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilClient::getDescription | ( | ) | 
get client description
Definition at line 129 of file class.ilClient.php.
| ilClient::getError | ( | ) | 
get error message and clear error var
Definition at line 646 of file class.ilClient.php.
| ilClient::getId | ( | ) | 
get client id
Definition at line 92 of file class.ilClient.php.
References $id.
Referenced by getDataDir(), getWebspaceDir(), and ilClient().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilClient::getName | ( | ) | 
get client name
Definition at line 111 of file class.ilClient.php.
| ilClient::getNICkey | ( | ) | 
get nic_key public
Definition at line 616 of file class.ilClient.php.
References getSetting(), and setNICkey().
Referenced by getURLStringForNIC().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilClient::getSetting | ( | $a_keyword | ) | 
read one value from settings table public
| string | keyword | 
Definition at line 476 of file class.ilClient.php.
Referenced by getDefaultLanguage(), and getNICkey().
 Here is the caller 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 513 of file class.ilClient.php.
References getAllSettings(), and getNICkey().
Referenced by updateNIC().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilClient::getWebspaceDir | ( | ) | 
get client webspacedir path
Definition at line 408 of file class.ilClient.php.
References getId(), ILIAS_ABSOLUTE_PATH, and ILIAS_WEB_DIR.
Referenced by create().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilClient::ilClient | ( | $a_client_id, | |
| $a_db_connections | |||
| ) | 
Constructor.
| string | client id | 
Definition at line 29 of file class.ilClient.php.
References getId(), ILIAS_ABSOLUTE_PATH, and ILIAS_WEB_DIR.
 Here is the call graph for this function:
 Here is the call graph for this function:| ilClient::init | ( | ) | 
init client load client.ini and set some constants
Definition at line 48 of file class.ilClient.php.
References connect(), ILIAS_ABSOLUTE_PATH, ILIAS_WEB_DIR, and isInstalledDB().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilClient::isInstalledDB | ( | & | $a_db | ) | 
check if client db is installed
| object | db object | 
Definition at line 206 of file class.ilClient.php.
Referenced by checkDatabaseExists(), and init().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilClient::reconnect | ( | ) | 
Definition at line 465 of file class.ilClient.php.
References connect().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilClient::setDbHost | ( | $a_str | ) | 
set the host
| string | 
Definition at line 282 of file class.ilClient.php.
| ilClient::setDbName | ( | $a_str | ) | 
set the name of database
| string | 
Definition at line 301 of file class.ilClient.php.
| ilClient::setDbPass | ( | $a_str | ) | 
set db password
| string | 
Definition at line 355 of file class.ilClient.php.
| ilClient::setDbPort | ( | $a_str | ) | 
set db port
| string | 
Definition at line 346 of file class.ilClient.php.
| ilClient::setDbType | ( | $a_str | ) | 
set the type of database
| string | 
Definition at line 373 of file class.ilClient.php.
| ilClient::setDbUser | ( | $a_str | ) | 
set db user
| string | db user | 
Definition at line 319 of file class.ilClient.php.
| ilClient::setDefaultLanguage | ( | $a_lang_key | ) | 
Definition at line 633 of file class.ilClient.php.
References setSetting().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilClient::setDescription | ( | $a_str | ) | 
set client description
| string | client description | 
Definition at line 138 of file class.ilClient.php.
| ilClient::setDSN | ( | ) | 
set the dsn and dsn_host
Definition at line 230 of file class.ilClient.php.
References getDbType().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilClient::setId | ( | $a_client_id | ) | 
set client id
| string | client id | 
Definition at line 101 of file class.ilClient.php.
References $id, ILIAS_ABSOLUTE_PATH, and ILIAS_WEB_DIR.
| ilClient::setName | ( | $a_str | ) | 
set client name
| string | client name | 
Definition at line 120 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. public
Definition at line 598 of file class.ilClient.php.
References setSetting().
Referenced by getNICkey().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilClient::setSetting | ( | $a_key, | |
| $a_val | |||
| ) | 
write one value to settings table public
| string | keyword | 
| string | value | 
Definition at line 502 of file class.ilClient.php.
Referenced by setDefaultLanguage(), and setNICkey().
 Here is the caller graph for this function:
 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 562 of file class.ilClient.php.
References getAllSettings(), and getURLStringForNIC().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilClient::$client_defaults | 
Definition at line 20 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.
| ilClient::$dir | 
Definition at line 15 of file class.ilClient.php.
| ilClient::$id | 
Definition at line 14 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.