MediaWiki  REL1_19
LockManagerGroup Class Reference

Class to handle file lock manager registration. More...

List of all members.

Public Member Functions

 get ($name)
 Get the lock manager object with a given name.

Static Public Member Functions

static singleton ()

Protected Member Functions

 __clone ()
 __construct ()
 initFromGlobals ()
 Register lock managers from the global variables.
 register (array $configs)
 Register an array of file lock manager configurations.

Protected Attributes

 $managers = array()

Static Protected Attributes

static $instance = null

Detailed Description

Class to handle file lock manager registration.

Author:
Aaron Schulz
Since:
1.19

Definition at line 9 of file LockManagerGroup.php.


Constructor & Destructor Documentation

Definition at line 19 of file LockManagerGroup.php.


Member Function Documentation

LockManagerGroup::__clone ( ) [protected]

Definition at line 20 of file LockManagerGroup.php.

LockManagerGroup::get ( name)

Get the lock manager object with a given name.

Parameters:
$namestring
Returns:
LockManager
Exceptions:
MWException

Definition at line 77 of file LockManagerGroup.php.

Register lock managers from the global variables.

Returns:
void

Definition at line 38 of file LockManagerGroup.php.

References $wgLockManagers.

LockManagerGroup::register ( array $  configs) [protected]

Register an array of file lock manager configurations.

Parameters:
$configsArray
Returns:
void
Exceptions:
MWException

Definition at line 51 of file LockManagerGroup.php.

static LockManagerGroup::singleton ( ) [static]
Returns:
LockManagerGroup

Definition at line 25 of file LockManagerGroup.php.

References $instance.

Referenced by FileBackend\__construct().

Here is the caller graph for this function:


Member Data Documentation

LockManagerGroup::$instance = null [static, protected]

Definition at line 14 of file LockManagerGroup.php.

Referenced by singleton().

LockManagerGroup::$managers = array() [protected]

Definition at line 17 of file LockManagerGroup.php.


The documentation for this class was generated from the following file: