|
ILIAS
Release_3_10_x_branch Revision 61812
|
client management More...
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 | |
| getMySQLVersion () | |
| get mysql version | |
| isMysql4_1OrHigher () | |
| check wether current MySQL server is version 4.1.x or higher | |
| 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 | |
| setDbPass ($a_str) | |
| set db password | |
| getDbPass () | |
| get db password | |
| getDataDir () | |
| get client datadir path | |
| getWebspaceDir () | |
| get client webspacedir path | |
| checkDatabaseHost () | |
| check database connection | |
| checkDatabaseExists () | |
| 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 32 of file class.ilClient.php.
| ilClient::checkDatabaseExists | ( | ) |
check database connection with database name
Definition at line 399 of file class.ilClient.php.
References isInstalledDB().
Here is the call graph for this function:| ilClient::checkDatabaseHost | ( | ) |
check database connection
Definition at line 378 of file class.ilClient.php.
References $lng.
| ilClient::connect | ( | ) |
connect to client database
Definition at line 195 of file class.ilClient.php.
References isMysql4_1OrHigher(), and setDSN().
Referenced by init().
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 691 of file class.ilClient.php.
References 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 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:| ilClient::getAllSettings | ( | ) |
read all values from settings table public
Definition at line 459 of file class.ilClient.php.
References DB_FETCHMODE_ASSOC.
Referenced by getURLStringForNIC().
Here is the caller graph for this function:| ilClient::getDataDir | ( | ) |
get client datadir path
Definition at line 360 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::getDbHost | ( | ) |
get db host
Definition at line 297 of file class.ilClient.php.
| ilClient::getDbName | ( | ) |
get name of database
Definition at line 315 of file class.ilClient.php.
Referenced by delete().
Here is the caller graph for this function:| ilClient::getDbPass | ( | ) |
get db password
Definition at line 351 of file class.ilClient.php.
| ilClient::getDbUser | ( | ) |
get db user
Definition at line 333 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:| ilClient::getDescription | ( | ) |
get client description
Definition at line 149 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 112 of file class.ilClient.php.
References $id.
Referenced by getDataDir(), getWebspaceDir(), and ilClient().
Here is the caller graph for this function:| ilClient::getMySQLVersion | ( | ) |
get mysql version
Definition at line 166 of file class.ilClient.php.
| ilClient::getName | ( | ) |
get client name
Definition at line 131 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 caller graph for this function:| ilClient::getSetting | ( | $a_keyword | ) |
read one value from settings table public
| string | keyword |
Definition at line 428 of file class.ilClient.php.
Referenced by getDefaultLanguage(), and getNICkey().
Here is the caller graph for this function:| ilClient::getURLStringForNIC | ( | $a_nic_url | ) |
| string | url to ilias nic server |
Definition at line 511 of file class.ilClient.php.
References 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 369 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 caller graph for this function:| ilClient::ilClient | ( | $a_client_id, | |
| $a_db_connections | |||
| ) |
Constructor.
| string | client id |
Definition at line 49 of file class.ilClient.php.
References getId(), ILIAS_ABSOLUTE_PATH, and ILIAS_WEB_DIR.
Here is the call graph for this function:| ilClient::init | ( | ) |
init client load client.ini and set some constants
Definition at line 68 of file class.ilClient.php.
References connect(), ILIAS_ABSOLUTE_PATH, ILIAS_WEB_DIR, and isInstalledDB().
Here is the call graph for this function:| ilClient::isInstalledDB | ( | & | $a_db | ) |
check if client db is installed
| object | db object |
Definition at line 250 of file class.ilClient.php.
References DB_FETCHMODE_ASSOC.
Referenced by checkDatabaseExists(), and init().
Here is the caller graph for this function:| ilClient::isMysql4_1OrHigher | ( | ) |
check wether current MySQL server is version 4.1.x or higher
NOTE: Three sourcecodes use this or a similar handling:
Definition at line 179 of file class.ilClient.php.
Referenced by connect().
Here is the caller graph for this function:| ilClient::reconnect | ( | ) |
Definition at line 417 of file class.ilClient.php.
| ilClient::setDbHost | ( | $a_str | ) |
set the host
| string |
Definition at line 287 of file class.ilClient.php.
| ilClient::setDbName | ( | $a_str | ) |
set the name of database
| string |
Definition at line 306 of file class.ilClient.php.
| ilClient::setDbPass | ( | $a_str | ) |
set db password
| string |
Definition at line 342 of file class.ilClient.php.
| ilClient::setDbUser | ( | $a_str | ) |
set db user
| string | db user |
Definition at line 324 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:| ilClient::setDescription | ( | $a_str | ) |
set client description
| string | client description |
Definition at line 158 of file class.ilClient.php.
| ilClient::setDSN | ( | ) |
set the dsn and dsn_host
Definition at line 276 of file class.ilClient.php.
Referenced by connect().
Here is the caller graph for this function:| ilClient::setId | ( | $a_client_id | ) |
set client id
| string | client id |
Definition at line 121 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 140 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 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 479 of file class.ilClient.php.
References DB_FETCHMODE_ASSOC.
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 560 of file class.ilClient.php.
References $ret, and getURLStringForNIC().
Here is the call graph for this function:| ilClient::$client_defaults |
Definition at line 40 of file class.ilClient.php.
| ilClient::$db_exists = false |
Definition at line 37 of file class.ilClient.php.
| ilClient::$db_installed = false |
Definition at line 38 of file class.ilClient.php.
| ilClient::$dir |
Definition at line 35 of file class.ilClient.php.
| ilClient::$id |
Definition at line 34 of file class.ilClient.php.
| ilClient::$name |
Definition at line 36 of file class.ilClient.php.
| ilClient::$nic_status |
Definition at line 43 of file class.ilClient.php.
| ilClient::$setup_ok = false |
Definition at line 42 of file class.ilClient.php.
| ilClient::$status |
Definition at line 41 of file class.ilClient.php.