ILIAS
Release_4_4_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 |
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 552 of file class.ilClient.php.
References $GLOBALS, MDB2\isError(), and isInstalledDB().
ilClient::checkDatabaseHost | ( | ) |
check database connection
Definition at line 527 of file class.ilClient.php.
References $lng, getDbType(), and MDB2\isError().
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().
ilClient::create | ( | ) |
create a new client and its subdirectories
Definition at line 801 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 772 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 598 of file class.ilClient.php.
Referenced by getURLStringForNIC(), and updateNIC().
ilClient::getDataDir | ( | ) |
get client datadir path
Definition at line 509 of file class.ilClient.php.
References getId().
Referenced by create().
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().
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::getDbSlaveActive | ( | ) |
get slave active
Definition at line 383 of file class.ilClient.php.
ilClient::getDbSlaveHost | ( | ) |
get db slave host
Definition at line 402 of file class.ilClient.php.
ilClient::getDbSlaveName | ( | ) |
get name of slave database
Definition at line 420 of file class.ilClient.php.
ilClient::getDbSlavePass | ( | ) |
get slave db password
Definition at line 474 of file class.ilClient.php.
ilClient::getDbSlavePort | ( | ) |
get slave db port
Definition at line 447 of file class.ilClient.php.
ilClient::getDbSlaveUser | ( | ) |
get slave db user
Definition at line 438 of file class.ilClient.php.
ilClient::getDbType | ( | ) |
get type of database
Definition at line 492 of file class.ilClient.php.
Referenced by checkDatabaseHost(), and setDSN().
ilClient::getDbUser | ( | ) |
get db user
Definition at line 328 of file class.ilClient.php.
ilClient::getDefaultLanguage | ( | ) |
Definition at line 738 of file class.ilClient.php.
References getSetting().
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 756 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().
ilClient::getName | ( | ) |
get client name
Definition at line 111 of file class.ilClient.php.
ilClient::getNICkey | ( | ) |
get nic_key public
Definition at line 726 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 586 of file class.ilClient.php.
Referenced by getDefaultLanguage(), and getNICkey().
ilClient::getURLStringForNIC | ( | $a_nic_url | ) |
string | url to ilias nic server |
Definition at line 623 of file class.ilClient.php.
References getAllSettings(), and getNICkey().
Referenced by updateNIC().
ilClient::getWebspaceDir | ( | ) |
get client webspacedir path
Definition at line 518 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 29 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 48 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 206 of file class.ilClient.php.
Referenced by checkDatabaseExists(), and init().
ilClient::reconnect | ( | ) |
Definition at line 575 of file class.ilClient.php.
References connect().
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::setDbSlaveActive | ( | $a_act | ) |
set the slave active
int |
Definition at line 373 of file class.ilClient.php.
ilClient::setDbSlaveHost | ( | $a_str | ) |
set the slave host
string |
Definition at line 392 of file class.ilClient.php.
ilClient::setDbSlaveName | ( | $a_str | ) |
set the name of slave database
string |
Definition at line 411 of file class.ilClient.php.
ilClient::setDbSlavePass | ( | $a_str | ) |
set slave db password
string |
Definition at line 465 of file class.ilClient.php.
ilClient::setDbSlavePort | ( | $a_str | ) |
set slave db port
string |
Definition at line 456 of file class.ilClient.php.
ilClient::setDbSlaveUser | ( | $a_str | ) |
set slave db user
string | db user |
Definition at line 429 of file class.ilClient.php.
ilClient::setDbType | ( | $a_str | ) |
set the type of database
string |
Definition at line 483 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 743 of file class.ilClient.php.
References setSetting().
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().
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 708 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 612 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 672 of file class.ilClient.php.
References getAllSettings(), and getURLStringForNIC().
ilClient::writeIni | ( | ) |
write init
@return |
Definition at line 884 of file class.ilClient.php.
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.