ILIAS
Release_5_0_x_branch Revision 61816
|
Client Management. More...
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 | |
setDbSlaveActive ($a_act) | |
set the slave active | |
getDbSlaveActive () | |
get slave active | |
setDbSlaveHost ($a_str) | |
set the slave host | |
getDbSlaveHost () | |
get db slave host | |
setDbSlaveName ($a_str) | |
set the name of slave database | |
getDbSlaveName () | |
get name of slave database | |
setDbSlaveUser ($a_str) | |
set slave db user | |
getDbSlaveUser () | |
get slave db user | |
getDbSlavePort () | |
get slave db port | |
setDbSlavePort ($a_str) | |
set slave db port | |
setDbSlavePass ($a_str) | |
set slave db password | |
getDbSlavePass () | |
get slave 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 | |
writeIni () | |
write init |
Data Fields | |
$id | |
$dir | |
$name | |
$db_exists = false | |
$db_installed = false | |
$client_defaults | |
$status | |
$setup_ok = false | |
$nic_status | |
$db | |
$ini |
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 562 of file class.ilClient.php.
References $db, $GLOBALS, MDB2\isError(), and isInstalledDB().
ilClient::checkDatabaseHost | ( | ) |
check database connection
Definition at line 537 of file class.ilClient.php.
References $db, $lng, getDbType(), and MDB2\isError().
ilClient::connect | ( | ) |
connect to client database
Definition at line 173 of file class.ilClient.php.
References $db, $GLOBALS, and ilDBWrapperFactory\getWrapper().
Referenced by init(), and reconnect().
ilClient::create | ( | ) |
create a new client and its subdirectories
Definition at line 800 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 771 of file class.ilClient.php.
References ilUtil\delDir(), getDbName(), ILIAS_ABSOLUTE_PATH, and ILIAS_WEB_DIR.
ilClient::getAllSettings | ( | ) |
read all values from settings table public
Definition at line 608 of file class.ilClient.php.
Referenced by getURLStringForNIC(), and updateNIC().
ilClient::getDataDir | ( | ) |
get client datadir path
Definition at line 519 of file class.ilClient.php.
References getId().
Referenced by create().
ilClient::getDB | ( | ) |
ilClient::getDbHost | ( | ) |
get db host
Definition at line 302 of file class.ilClient.php.
ilClient::getDbName | ( | ) |
get name of database
Definition at line 320 of file class.ilClient.php.
Referenced by delete().
ilClient::getDbPass | ( | ) |
get db password
Definition at line 374 of file class.ilClient.php.
ilClient::getDbPort | ( | ) |
get db port
Definition at line 347 of file class.ilClient.php.
ilClient::getDbSlaveActive | ( | ) |
get slave active
Definition at line 393 of file class.ilClient.php.
ilClient::getDbSlaveHost | ( | ) |
get db slave host
Definition at line 412 of file class.ilClient.php.
ilClient::getDbSlaveName | ( | ) |
get name of slave database
Definition at line 430 of file class.ilClient.php.
ilClient::getDbSlavePass | ( | ) |
get slave db password
Definition at line 484 of file class.ilClient.php.
ilClient::getDbSlavePort | ( | ) |
get slave db port
Definition at line 457 of file class.ilClient.php.
ilClient::getDbSlaveUser | ( | ) |
get slave db user
Definition at line 448 of file class.ilClient.php.
ilClient::getDbType | ( | ) |
get type of database
Definition at line 502 of file class.ilClient.php.
Referenced by checkDatabaseHost(), and setDSN().
ilClient::getDbUser | ( | ) |
get db user
Definition at line 338 of file class.ilClient.php.
ilClient::getDefaultLanguage | ( | ) |
Definition at line 737 of file class.ilClient.php.
References getSetting().
ilClient::getDescription | ( | ) |
get client description
Definition at line 139 of file class.ilClient.php.
ilClient::getError | ( | ) |
get error message and clear error var
Definition at line 755 of file class.ilClient.php.
ilClient::getId | ( | ) |
get client id
Definition at line 102 of file class.ilClient.php.
References $id.
Referenced by getDataDir(), getWebspaceDir(), and ilClient().
ilClient::getName | ( | ) |
get client name
Definition at line 121 of file class.ilClient.php.
ilClient::getNICkey | ( | ) |
get nic_key public
Definition at line 725 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.
Referenced by getDefaultLanguage(), and getNICkey().
ilClient::getURLStringForNIC | ( | $a_nic_url | ) |
string | url to ilias nic server |
Definition at line 633 of file class.ilClient.php.
References getAllSettings(), and getNICkey().
Referenced by updateNIC().
ilClient::getWebspaceDir | ( | ) |
get client webspacedir path
Definition at line 528 of file class.ilClient.php.
References getId(), ILIAS_ABSOLUTE_PATH, and ILIAS_WEB_DIR.
Referenced by create().
ilClient::ilClient | ( | $a_client_id, | |
$a_db_connections | |||
) |
Constructor.
string | client id |
Definition at line 39 of file class.ilClient.php.
References getId(), ILIAS_ABSOLUTE_PATH, and ILIAS_WEB_DIR.
ilClient::init | ( | ) |
init client load client.ini and set some constants
Definition at line 58 of file class.ilClient.php.
References connect(), ILIAS_ABSOLUTE_PATH, ILIAS_WEB_DIR, and isInstalledDB().
ilClient::isInstalledDB | ( | & | $a_db | ) |
check if client db is installed
object | db object |
Definition at line 216 of file class.ilClient.php.
Referenced by checkDatabaseExists(), and init().
ilClient::reconnect | ( | ) |
Definition at line 585 of file class.ilClient.php.
References connect().
ilClient::setDbHost | ( | $a_str | ) |
set the host
string |
Definition at line 292 of file class.ilClient.php.
ilClient::setDbName | ( | $a_str | ) |
set the name of database
string |
Definition at line 311 of file class.ilClient.php.
ilClient::setDbPass | ( | $a_str | ) |
set db password
string |
Definition at line 365 of file class.ilClient.php.
ilClient::setDbPort | ( | $a_str | ) |
set db port
string |
Definition at line 356 of file class.ilClient.php.
ilClient::setDbSlaveActive | ( | $a_act | ) |
set the slave active
int |
Definition at line 383 of file class.ilClient.php.
ilClient::setDbSlaveHost | ( | $a_str | ) |
set the slave host
string |
Definition at line 402 of file class.ilClient.php.
ilClient::setDbSlaveName | ( | $a_str | ) |
set the name of slave database
string |
Definition at line 421 of file class.ilClient.php.
ilClient::setDbSlavePass | ( | $a_str | ) |
set slave db password
string |
Definition at line 475 of file class.ilClient.php.
ilClient::setDbSlavePort | ( | $a_str | ) |
set slave db port
string |
Definition at line 466 of file class.ilClient.php.
ilClient::setDbSlaveUser | ( | $a_str | ) |
set slave db user
string | db user |
Definition at line 439 of file class.ilClient.php.
ilClient::setDbType | ( | $a_str | ) |
set the type of database
string |
Definition at line 493 of file class.ilClient.php.
ilClient::setDbUser | ( | $a_str | ) |
set db user
string | db user |
Definition at line 329 of file class.ilClient.php.
ilClient::setDefaultLanguage | ( | $a_lang_key | ) |
Definition at line 742 of file class.ilClient.php.
References setSetting().
ilClient::setDescription | ( | $a_str | ) |
set client description
string | client description |
Definition at line 148 of file class.ilClient.php.
ilClient::setDSN | ( | ) |
set the dsn and dsn_host
Definition at line 240 of file class.ilClient.php.
References getDbType().
ilClient::setId | ( | $a_client_id | ) |
set client id
string | client id |
Definition at line 111 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 130 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 707 of file class.ilClient.php.
References setSetting().
Referenced by getNICkey().
ilClient::setSetting | ( | $a_key, | |
$a_val | |||
) |
write one value to settings table public
string | keyword |
string | value |
Definition at line 622 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 671 of file class.ilClient.php.
References getAllSettings(), and getURLStringForNIC().
ilClient::writeIni | ( | ) |
write init
@return |
Definition at line 883 of file class.ilClient.php.
ilClient::$client_defaults |
Definition at line 20 of file class.ilClient.php.
ilClient::$db |
Definition at line 28 of file class.ilClient.php.
Referenced by checkDatabaseExists(), checkDatabaseHost(), 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::$id |
Definition at line 14 of file class.ilClient.php.
ilClient::$ini |
Definition at line 33 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.