Definition at line 33 of file DBAccessBase.php.
◆ __construct()
DBAccessBase::__construct |
( |
|
$wiki = false | ) |
|
- Parameters
-
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, and wiki.
◆ getConnection()
DBAccessBase::getConnection |
( |
|
$id, |
|
|
|
$groups = [] |
|
) |
| |
|
protected |
Returns a database connection.
- See also
- wfGetDB()
-
LoadBalancer::getConnection()
- Since
- 1.21
- Parameters
-
int | $id | Which connection to use |
array | $groups | Query groups |
- Returns
- Database
Definition at line 61 of file DBAccessBase.php.
References wfGetLB(), and wiki.
◆ getLoadBalancer()
DBAccessBase::getLoadBalancer |
( |
| ) |
|
◆ releaseConnection()
DBAccessBase::releaseConnection |
( |
Database |
$db | ) |
|
|
protected |
Releases a database connection and makes it available for recycling.
- See also
- LoadBalancer::reuseConnection()
- Since
- 1.21
- Parameters
-
Database | $db | The database connection to release. |
Definition at line 76 of file DBAccessBase.php.
References getLoadBalancer(), and wiki.
◆ $wiki
DBAccessBase::$wiki = false |
|
protected |
The documentation for this class was generated from the following file: