MediaWiki
1.23.5
|
Public Member Functions | |
__construct ( $wiki=false) | |
getLoadBalancer () | |
Get the database type used for read operations. More... | |
Protected Member Functions | |
getConnection ( $id, $groups=array()) | |
Returns a database connection. More... | |
releaseConnection (DatabaseBase $db) | |
Releases a database connection and makes it available for recycling. More... | |
Protected Attributes | |
string bool | $wiki = false |
$wiki The target wiki's name. More... | |
Additional Inherited Members | |
Public Attributes inherited from IDBAccessObject | |
const | READ_LATEST = 1 |
const | READ_LOCKING = 3 |
const | READ_NONE = -1 |
const | READ_NORMAL = 0 |
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 40 of file DBAccessBase.php.
|
protected |
Returns a database connection.
int | $id | Which connection to use |
array | $groups | Query groups |
Definition at line 57 of file DBAccessBase.php.
References wfGetLB(), and wiki.
Referenced by ORMTable\getReadDbConnection(), and ORMTable\getWriteDbConnection().
DBAccessBase::getLoadBalancer | ( | ) |
Get the database type used for read operations.
Definition at line 88 of file DBAccessBase.php.
References wfGetLB(), and wiki.
Referenced by releaseConnection().
|
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.
References getLoadBalancer(), and wiki.
|
protected |
$wiki The target wiki's name.
This must be an ID that LBFactory can understand.
Definition at line 34 of file DBAccessBase.php.
Referenced by __construct(), ORMTable\getTargetWiki(), and ORMTable\setTargetWiki().