MediaWiki
1.23.2
|
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. More... | |
get ( $name) | |
Get the lock manager object with a given name. More... | |
getAny () | |
Get the default lock manager configured for the site or at least some other effective configured lock manager. More... | |
getDefault () | |
Get the default lock manager configured for the site. More... | |
Static Public Member Functions | |
static | destroySingletons () |
Destroy the singleton instances. More... | |
static | singleton ( $domain=false) |
Protected Member Functions | |
__construct ( $domain) | |
initFromGlobals () | |
Register lock managers from the global variables. More... | |
register (array $configs) | |
Register an array of file lock manager configurations. More... | |
Protected Attributes | |
$domain | |
array | $managers = array() |
of (name => ('class' => ..., 'config' => ..., 'instance' => ...)) * More... | |
Static Protected Attributes | |
static | $instances = array() |
Class to handle file lock manager registration.
Definition at line 31 of file LockManagerGroup.php.
|
protected |
string | $domain | Domain (usually wiki ID) |
Definition at line 42 of file LockManagerGroup.php.
References $domain.
LockManagerGroup::config | ( | $name | ) |
Get the config array for a lock manager object with a given name.
string | $name |
MWException |
Definition at line 130 of file LockManagerGroup.php.
|
static |
Destroy the singleton instances.
Definition at line 63 of file LockManagerGroup.php.
References array().
Referenced by ForkController\prepareEnvironment().
LockManagerGroup::get | ( | $name | ) |
Get the lock manager object with a given name.
string | $name |
MWException |
Definition at line 109 of file LockManagerGroup.php.
References $name.
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.
MWException |
Definition at line 159 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 145 of file LockManagerGroup.php.
References array().
|
protected |
Register lock managers from the global variables.
Definition at line 70 of file LockManagerGroup.php.
References $wgLockManagers, and global.
|
protected |
Register an array of file lock manager configurations.
array | $configs |
MWException |
Definition at line 82 of file LockManagerGroup.php.
|
static |
bool | string | $domain | Domain (usually wiki ID). Default: false. |
Definition at line 50 of file LockManagerGroup.php.
References $domain, false, and wfWikiID().
Referenced by FSRepo\__construct(), FileBackend\__construct(), FileBackendGroup\get(), StoreBatchTest\setUp(), and FileBackendTest\setUp().
|
protected |
Definition at line 35 of file LockManagerGroup.php.
Referenced by __construct(), register(), and singleton().
|
staticprotected |
Definition at line 33 of file LockManagerGroup.php.
of (name => ('class' => ..., 'config' => ..., 'instance' => ...)) *
Definition at line 37 of file LockManagerGroup.php.