MediaWiki  REL1_20
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.
 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 destroySingleton ()
 Destroy the singleton instance, so that a new one will be created next time singleton() is called.
static singleton ()

Protected Member Functions

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

Protected Attributes

Array $managers = array()
 of (name => ('class' =>, 'config' =>, 'instance' =>)) *

Static Protected Attributes

static $instance = null

Detailed Description

Class to handle file lock manager registration.

Author:
Aaron Schulz
Since:
1.19

Definition at line 31 of file LockManagerGroup.php.


Constructor & Destructor Documentation

Definition at line 39 of file LockManagerGroup.php.


Member Function Documentation

Destroy the singleton instance, so that a new one will be created next time singleton() is called.

Definition at line 56 of file LockManagerGroup.php.

Referenced by ForkController\prepareEnvironment().

LockManagerGroup::get ( name)

Get the lock manager object with a given name.

Parameters:
$namestring
Returns:
LockManager
Exceptions:
MWException

Definition at line 104 of file LockManagerGroup.php.

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.

Returns:
LockManager
Exceptions:
MWException

Definition at line 137 of file LockManagerGroup.php.

Get the default lock manager configured for the site.

Returns NullLockManager if no lock manager could be found.

Returns:
LockManager

Definition at line 123 of file LockManagerGroup.php.

Register lock managers from the global variables.

Returns:
void

Definition at line 65 of file LockManagerGroup.php.

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

Register an array of file lock manager configurations.

Parameters:
$configsArray
Returns:
void
Exceptions:
MWException

Definition at line 78 of file LockManagerGroup.php.

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

Definition at line 44 of file LockManagerGroup.php.


Member Data Documentation

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

Definition at line 35 of file LockManagerGroup.php.

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

of (name => ('class' =>, 'config' =>, 'instance' =>)) *

Definition at line 37 of file LockManagerGroup.php.


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