MediaWiki  REL1_24
LBFactorySingle Class Reference

An LBFactory class that always returns a single database object. More...

Inheritance diagram for LBFactorySingle:
Collaboration diagram for LBFactorySingle:

List of all members.

Public Member Functions

 __construct ($conf)
 forEachLB ($callback, $params=array())
getExternalLB ($cluster, $wiki=false)
 getMainLB ($wiki=false)
 newExternalLB ($cluster, $wiki=false)
 newMainLB ($wiki=false)

Protected Attributes

LoadBalancerSingle $lb
 *

Detailed Description

An LBFactory class that always returns a single database object.

Definition at line 27 of file LBFactorySingle.php.


Constructor & Destructor Documentation

Parameters:
array$confAn associative array with one member:

Reimplemented from LBFactory.

Definition at line 34 of file LBFactorySingle.php.


Member Function Documentation

LBFactorySingle::forEachLB ( callback,
params = array() 
)
Parameters:
string | callable$callback
array$params

Reimplemented from LBFactory.

Definition at line 76 of file LBFactorySingle.php.

& LBFactorySingle::getExternalLB ( cluster,
wiki = false 
)
Parameters:
string$clusterExternal storage cluster, or false for core
bool | string$wikiWiki ID, or false for the current wiki
Returns:
LoadBalancerSingle

Reimplemented from LBFactory.

Definition at line 68 of file LBFactorySingle.php.

Parameters:
bool | string$wiki
Returns:
LoadBalancerSingle

Reimplemented from LBFactory.

Definition at line 50 of file LBFactorySingle.php.

LBFactorySingle::newExternalLB ( cluster,
wiki = false 
)
Parameters:
string$clusterExternal storage cluster, or false for core
bool | string$wikiWiki ID, or false for the current wiki
Returns:
LoadBalancerSingle

Reimplemented from LBFactory.

Definition at line 59 of file LBFactorySingle.php.

Parameters:
bool | string$wiki
Returns:
LoadBalancerSingle

Reimplemented from LBFactory.

Definition at line 42 of file LBFactorySingle.php.


Member Data Documentation

LoadBalancerSingle LBFactorySingle::$lb [protected]

*

Definition at line 28 of file LBFactorySingle.php.


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