MediaWiki  REL1_22
LBFactory_Single Class Reference

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

Inheritance diagram for LBFactory_Single:
Collaboration diagram for LBFactory_Single:

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

 $lb

Detailed Description

An LBFactory class that always returns a single database object.

Definition at line 27 of file LBFactory_Single.php.


Constructor & Destructor Documentation

Parameters:
array$confAn associative array with one member:

Reimplemented from LBFactory.

Definition at line 34 of file LBFactory_Single.php.


Member Function Documentation

LBFactory_Single::forEachLB ( callback,
params = array() 
)
Parameters:
$callbackstring|array
$paramsarray

Reimplemented from LBFactory.

Definition at line 80 of file LBFactory_Single.php.

References $params, and array().

& LBFactory_Single::getExternalLB ( cluster,
wiki = false 
)
Parameters:
$cluster
$wikibool|string
Returns:
LoadBalancer_Single

Reimplemented from LBFactory.

Definition at line 72 of file LBFactory_Single.php.

Parameters:
$wikibool|string
Returns:
LoadBalancer_Single

Reimplemented from LBFactory.

Definition at line 52 of file LBFactory_Single.php.

LBFactory_Single::newExternalLB ( cluster,
wiki = false 
)
Parameters:
$cluster
$wikibool|string
Returns:
LoadBalancer_Single

Reimplemented from LBFactory.

Definition at line 62 of file LBFactory_Single.php.

Parameters:
$wikibool|string
Returns:
LoadBalancer_Single

Reimplemented from LBFactory.

Definition at line 43 of file LBFactory_Single.php.


Member Data Documentation

LBFactory_Single::$lb [protected]

Definition at line 28 of file LBFactory_Single.php.


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