BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
LockManagerGroup Class Reference

Public Member Functions

 get ($name)
 
 config ($name)
 
 getDefault ()
 
 getAny ()
 

Static Public Member Functions

static singleton ($domain=false)
 
static destroySingletons ()
 

Protected Member Functions

 __construct ($domain)
 
 initFromGlobals ()
 
 register (array $configs)
 

Protected Attributes

 $domain
 
 $managers = []
 

Static Protected Attributes

static $instances = []
 

Detailed Description

Class to handle file lock manager registration

Author
Aaron Schulz
Since
1.19

Constructor & Destructor Documentation

LockManagerGroup::__construct (   $domain)
protected
Parameters
string$domainDomain (usually wiki ID)

Member Function Documentation

LockManagerGroup::config (   $name)

Get the config array for a lock manager object with a given name

Parameters
string$name
Returns
array
Exceptions
Exception
static LockManagerGroup::destroySingletons ( )
static

Destroy the singleton instances

LockManagerGroup::get (   $name)

Get the lock manager object with a given name

Parameters
string$name
Returns
LockManager
Exceptions
Exception
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.

Returns
LockManager
Exceptions
Exception
LockManagerGroup::getDefault ( )

Get the default lock manager configured for the site. Returns NullLockManager if no lock manager could be found.

Returns
LockManager
LockManagerGroup::initFromGlobals ( )
protected

Register lock managers from the global variables

LockManagerGroup::register ( array  $configs)
protected

Register an array of file lock manager configurations

Parameters
array$configs
Exceptions
Exception
static LockManagerGroup::singleton (   $domain = false)
static
Parameters
bool | string$domainDomain (usually wiki ID). Default: false.
Returns
LockManagerGroup

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