MediaWiki fundraising/REL1_35
|
Class to handle file lock manager registration. More...
Public Member Functions | |
__construct ( $domain, array $lockManagerConfigs, LBFactory $lbFactory) | |
Do not call this directly. | |
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 Attributes | |
string | $domain |
domain (usually wiki ID) | |
LBFactory | $lbFactory |
array | $managers = [] |
Array of (name => ('class' => ..., 'config' => ..., 'instance' => ...)) | |
Class to handle file lock manager registration.
Definition at line 33 of file LockManagerGroup.php.
LockManagerGroup::__construct | ( | $domain, | |
array | $lockManagerConfigs, | ||
LBFactory | $lbFactory ) |
Do not call this directly.
Use LockManagerGroupFactory.
string | $domain | Domain (usually wiki ID) |
array[] | $lockManagerConfigs | In format of $wgLockManagers |
LBFactory | $lbFactory |
Definition at line 50 of file LockManagerGroup.php.
LockManagerGroup::config | ( | $name | ) |
Get the config array for a lock manager object with a given name.
string | $name |
Exception |
Definition at line 124 of file LockManagerGroup.php.
|
static |
Destroy the singleton instances.
Definition at line 89 of file LockManagerGroup.php.
LockManagerGroup::get | ( | $name | ) |
Get the lock manager object with a given name.
string | $name |
Exception |
Definition at line 100 of file LockManagerGroup.php.
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 159 of file LockManagerGroup.php.
References wfDeprecated().
LockManagerGroup::getDefault | ( | ) |
Get the default lock manager configured for the site.
Returns NullLockManager if no lock manager could be found.
Definition at line 141 of file LockManagerGroup.php.
References wfDeprecated().
|
static |
bool | string | $domain | Domain (usually wiki ID). Default: false. |
Definition at line 79 of file LockManagerGroup.php.
|
protected |
domain (usually wiki ID)
Definition at line 35 of file LockManagerGroup.php.
|
protected |
Definition at line 38 of file LockManagerGroup.php.
|
protected |
Array of (name => ('class' => ..., 'config' => ..., 'instance' => ...))
Definition at line 41 of file LockManagerGroup.php.