MediaWiki  REL1_22
DBAccessBase Class Reference
Inheritance diagram for DBAccessBase:
Collaboration diagram for DBAccessBase:

List of all members.

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.

Detailed Description

Definition at line 30 of file DBAccessBase.php.


Constructor & Destructor Documentation

Parameters:
string | bool$wikiThe target wiki's name. This must be an ID that LBFactory can understand.

Definition at line 41 of file DBAccessBase.php.


Member Function Documentation

DBAccessBase::getConnection ( id,
groups = array() 
) [protected]

Returns a database connection.

See also:
wfGetDB()
LoadBalancer::getConnection()
Since:
1.21
Parameters:
int$idWhich connection to use
array$groupsQuery groups
Returns:
DatabaseBase

Definition at line 58 of file DBAccessBase.php.

Get the database type used for read operations.

See also:
wfGetLB
Since:
1.21
Returns:
LoadBalancer The database load balancer object

Definition at line 88 of file DBAccessBase.php.

Releases a database connection and makes it available for recycling.

See also:
LoadBalancer::reuseConnection()
Since:
1.21
Parameters:
DatabaseBase$dbthe database connection to release.

Reimplemented in ORMTable.

Definition at line 72 of file DBAccessBase.php.


Member Data Documentation

String bool DBAccessBase::$wiki = false [protected]

$wiki The target wiki's name.

This must be an ID that LBFactory can understand.

Definition at line 35 of file DBAccessBase.php.


The documentation for this class was generated from the following file: