[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/filebackend/lockmanager/ -> LockManagerGroup.php (summary)

Lock manager registration handling. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 165 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

LockManagerGroup:: (9 methods):
  __construct()
  singleton()
  destroySingletons()
  initFromGlobals()
  register()
  get()
  config()
  getDefault()
  getAny()


Class: LockManagerGroup  - X-Ref

Class to handle file lock manager registration

__construct( $domain )   X-Ref

param: string $domain Domain (usually wiki ID)

singleton( $domain = false )   X-Ref

param: bool|string $domain Domain (usually wiki ID). Default: false.
return: LockManagerGroup

destroySingletons()   X-Ref
Destroy the singleton instances


initFromGlobals()   X-Ref
Register lock managers from the global variables


register( array $configs )   X-Ref
Register an array of file lock manager configurations

param: array $configs

get( $name )   X-Ref
Get the lock manager object with a given name

param: string $name
return: LockManager

config( $name )   X-Ref
Get the config array for a lock manager object with a given name

param: string $name
return: array

getDefault()   X-Ref
Get the default lock manager configured for the site.
Returns NullLockManager if no lock manager could be found.

return: LockManager

getAny()   X-Ref
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.

return: LockManager



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1