MediaWiki REL1_28
|
Class to handle file lock manager registration. More...
Public Member Functions | |
config ( $name) | |
Get the config array for a lock manager object with a given name. | |
get ( $name) | |
Get the lock manager object with a given name. | |
getAny () | |
Get the default lock manager configured for the site or at least some other effective configured lock manager. | |
getDefault () | |
Get the default lock manager configured for the site. | |
Static Public Member Functions | |
static | destroySingletons () |
Destroy the singleton instances. | |
static | singleton ( $domain=false) |
Protected Member Functions | |
__construct ( $domain) | |
initFromGlobals () | |
Register lock managers from the global variables. | |
register (array $configs) | |
Register an array of file lock manager configurations. | |
Protected Attributes | |
$domain | |
array | $managers = [] |
Array of (name => ('class' => ..., 'config' => ..., 'instance' => ...)) | |
Static Protected Attributes | |
static LockManagerGroup[] | $instances = [] |
(domain => LockManagerGroup) | |
Class to handle file lock manager registration.
Definition at line 33 of file LockManagerGroup.php.
|
protected |
string | $domain | Domain (usually wiki ID) |
Definition at line 45 of file LockManagerGroup.php.
References $domain.
LockManagerGroup::config | ( | $name | ) |
Get the config array for a lock manager object with a given name.
string | $name |
Exception |
Definition at line 143 of file LockManagerGroup.php.
References $name.
|
static |
Destroy the singleton instances.
Definition at line 66 of file LockManagerGroup.php.
Referenced by ForkController\prepareEnvironment(), and ParserTestRunner\staticSetup().
LockManagerGroup::get | ( | $name | ) |
Get the lock manager object with a given name.
string | $name |
Exception |
Definition at line 112 of file LockManagerGroup.php.
References $lbFactory, $name, and DB_MASTER.
LockManagerGroup::getAny | ( | ) |
Get the default lock manager configured for the site or at least some other effective configured lock manager.
Throws an exception if no lock manager could be found.
Exception |
Definition at line 172 of file LockManagerGroup.php.
LockManagerGroup::getDefault | ( | ) |
Get the default lock manager configured for the site.
Returns NullLockManager if no lock manager could be found.
Definition at line 158 of file LockManagerGroup.php.
|
protected |
Register lock managers from the global variables.
Definition at line 73 of file LockManagerGroup.php.
References $wgLockManagers, and global.
|
protected |
Register an array of file lock manager configurations.
array | $configs |
Exception |
Definition at line 85 of file LockManagerGroup.php.
|
static |
bool | string | $domain | Domain (usually wiki ID). Default: false. |
Definition at line 53 of file LockManagerGroup.php.
References $domain, false, and wfWikiID().
Referenced by FSRepo\__construct(), FileBackendGroup\config(), FileBackendTest\setUp(), SwiftFileBackendTest\setUp(), and StoreBatchTest\setUp().
|
protected |
Definition at line 37 of file LockManagerGroup.php.
Referenced by __construct(), register(), and singleton().
|
staticprotected |
(domain => LockManagerGroup)
Definition at line 35 of file LockManagerGroup.php.
|
protected |
Array of (name => ('class' => ..., 'config' => ..., 'instance' => ...))
Definition at line 40 of file LockManagerGroup.php.