MediaWiki
master
|
Class to handle file lock manager registration. More...
Public Member Functions | |
__construct ( $domain, array $lockManagerConfigs, LBFactory $lbFactory) | |
Do not call this directly. More... | |
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... | |
Protected Attributes | |
string | $domain |
domain (usually wiki ID) More... | |
LBFactory | $lbFactory |
array | $managers = [] |
Array of (name => ('class' => ..., 'config' => ..., 'instance' => ...)) More... | |
Class to handle file lock manager registration.
Definition at line 32 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 49 of file LockManagerGroup.php.
References $domain, and $lbFactory.
LockManagerGroup::config | ( | $name | ) |
Get the config array for a lock manager object with a given name.
string | $name |
Exception |
Definition at line 103 of file LockManagerGroup.php.
LockManagerGroup::get | ( | $name | ) |
Get the lock manager object with a given name.
string | $name |
Exception |
Definition at line 79 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 138 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 120 of file LockManagerGroup.php.
References wfDeprecated().
|
protected |
domain (usually wiki ID)
Definition at line 34 of file LockManagerGroup.php.
Referenced by __construct().
|
protected |
Definition at line 37 of file LockManagerGroup.php.
Referenced by __construct().
|
protected |
Array of (name => ('class' => ..., 'config' => ..., 'instance' => ...))
Definition at line 40 of file LockManagerGroup.php.