MediaWiki
REL1_22
|
Public Member Functions | |
__construct ($wiki=false) | |
getLoadBalancer () | |
Get the database type used for read operations. | |
Protected Member Functions | |
getConnection ($id, $groups=array()) | |
Returns a database connection. | |
releaseConnection (DatabaseBase $db) | |
Releases a database connection and makes it available for recycling. | |
Protected Attributes | |
String bool | $wiki = false |
$wiki The target wiki's name. |
Definition at line 30 of file DBAccessBase.php.
DBAccessBase::__construct | ( | $ | wiki = false | ) |
string | bool | $wiki | The target wiki's name. This must be an ID that LBFactory can understand. |
Definition at line 41 of file DBAccessBase.php.
DBAccessBase::getConnection | ( | $ | id, |
$ | groups = array() |
||
) | [protected] |
Returns a database connection.
int | $id | Which connection to use |
array | $groups | Query groups |
Definition at line 58 of file DBAccessBase.php.
Get the database type used for read operations.
Definition at line 88 of file DBAccessBase.php.
DBAccessBase::releaseConnection | ( | DatabaseBase $ | db | ) | [protected] |
Releases a database connection and makes it available for recycling.
DatabaseBase | $db | the database connection to release. |
Reimplemented in ORMTable.
Definition at line 72 of file DBAccessBase.php.
$wiki The target wiki's name.
This must be an ID that LBFactory can understand.
Definition at line 35 of file DBAccessBase.php.