MediaWiki REL1_30
|
Public Member Functions | |
__construct ( $wiki=false) | |
getLoadBalancer () | |
Get the database type used for read operations. | |
Protected Member Functions | |
getConnection ( $id, $groups=[]) | |
Returns a database connection. | |
releaseConnection (Database $db) | |
Releases a database connection and makes it available for recycling. | |
Protected Attributes | |
$wiki = false | |
Additional Inherited Members | |
Public Attributes inherited from IDBAccessObject | |
const | READ_LOCKING = 3 |
Constants for object loading bitfield flags (higher => higher QoS) | |
const | READ_NONE = -1 |
Definition at line 33 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 44 of file DBAccessBase.php.
References $wiki.
|
protected |
Returns a database connection.
int | $id | Which connection to use |
array | $groups | Query groups |
Definition at line 61 of file DBAccessBase.php.
References wfGetLB().
DBAccessBase::getLoadBalancer | ( | ) |
Get the database type used for read operations.
Definition at line 92 of file DBAccessBase.php.
References wfGetLB().
Referenced by releaseConnection().
|
protected |
Releases a database connection and makes it available for recycling.
Database | $db | The database connection to release. |
Definition at line 76 of file DBAccessBase.php.
References getLoadBalancer().
|
protected |
Definition at line 38 of file DBAccessBase.php.
Referenced by __construct().