|
MediaWiki
REL1_19
|
LBFactory class that throws an error on any attempt to use it. More...


Public Member Functions | |
| __construct ($conf) | |
| Construct a factory based on a configuration array (typically from $wgLBFactoryConf) | |
| forEachLB ($callback, $params=array()) | |
| Execute a function for each tracked load balancer The callback is called with the load balancer as the first parameter, and $params passed as the subsequent parameters. | |
| & | getExternalLB ($cluster, $wiki=false) |
| Get a cached (tracked) load balancer for external storage. | |
| getMainLB ($wiki=false) | |
| Get a cached (tracked) load balancer object. | |
| newExternalLB ($cluster, $wiki=false) | |
| Create a new load balancer for external storage. | |
| newMainLB ($wiki=false) | |
| Create a new load balancer object. | |
LBFactory class that throws an error on any attempt to use it.
This will typically be done via wfGetDB(). Call LBFactory::disableBackend() to start using this, and LBFactory::enableBackend() to return to normal behavior
Definition at line 269 of file LBFactory.php.
| LBFactory_Fake::__construct | ( | $ | conf | ) |
Construct a factory based on a configuration array (typically from $wgLBFactoryConf)
| $conf |
Reimplemented from LBFactory.
Definition at line 270 of file LBFactory.php.
| LBFactory_Fake::forEachLB | ( | $ | callback, |
| $ | params = array() |
||
| ) |
Execute a function for each tracked load balancer The callback is called with the load balancer as the first parameter, and $params passed as the subsequent parameters.
| $callback | string|array | |
| array | $params |
Reimplemented from LBFactory.
Definition at line 284 of file LBFactory.php.
| & LBFactory_Fake::getExternalLB | ( | $ | cluster, |
| $ | wiki = false |
||
| ) |
Get a cached (tracked) load balancer for external storage.
| $cluster | String: external storage cluster, or false for core |
| $wiki | String: wiki ID, or false for the current wiki |
Reimplemented from LBFactory.
Definition at line 281 of file LBFactory.php.
| LBFactory_Fake::getMainLB | ( | $ | wiki = false | ) |
Get a cached (tracked) load balancer object.
| $wiki | String: wiki ID, or false for the current wiki |
Reimplemented from LBFactory.
Definition at line 275 of file LBFactory.php.
| LBFactory_Fake::newExternalLB | ( | $ | cluster, |
| $ | wiki = false |
||
| ) |
Create a new load balancer for external storage.
The resulting object will be untracked, not chronology-protected, and the caller is responsible for cleaning it up.
| $cluster | String: external storage cluster, or false for core |
| $wiki | String: wiki ID, or false for the current wiki |
Reimplemented from LBFactory.
Definition at line 278 of file LBFactory.php.
| LBFactory_Fake::newMainLB | ( | $ | wiki = false | ) |
Create a new load balancer object.
The resulting object will be untracked, not chronology-protected, and the caller is responsible for cleaning it up.
| $wiki | String: wiki ID, or false for the current wiki |
Reimplemented from LBFactory.
Definition at line 272 of file LBFactory.php.