MediaWiki  REL1_19
FileBackendGroup Class Reference

Class to handle file backend registration. More...

List of all members.

Public Member Functions

 backendFromPath ($storagePath)
 Get an appropriate backend object from a storage path.
 get ($name)
 Get the backend object with a given name.

Static Public Member Functions

static destroySingleton ()
 Destroy the singleton instance.
static singleton ()

Protected Member Functions

 __clone ()
 __construct ()
 initFromGlobals ()
 Register file backends from the global variables.
 register (array $configs)
 Register an array of file backend configurations.

Protected Attributes

 $backends = array()

Static Protected Attributes

static $instance = null

Detailed Description

Class to handle file backend registration.

Since:
1.19

Definition at line 14 of file FileBackendGroup.php.


Constructor & Destructor Documentation

Definition at line 23 of file FileBackendGroup.php.


Member Function Documentation

FileBackendGroup::__clone ( ) [protected]

Definition at line 24 of file FileBackendGroup.php.

Get an appropriate backend object from a storage path.

Parameters:
$storagePathstring
Returns:
FileBackend|null Backend or null on failure

Definition at line 149 of file FileBackendGroup.php.

References FileBackend\splitStoragePath().

Here is the call graph for this function:

Destroy the singleton instance.

Returns:
void

Definition at line 42 of file FileBackendGroup.php.

Referenced by UploadFromUrlTestSuite\setUp(), NewParserTest\setupGlobals(), UploadFromUrlTestSuite\tearDown(), and NewParserTest\tearDown().

Here is the caller graph for this function:

FileBackendGroup::get ( name)

Get the backend object with a given name.

Parameters:
$namestring
Returns:
FileBackend
Exceptions:
MWException

Definition at line 130 of file FileBackendGroup.php.

Register file backends from the global variables.

Returns:
void

Definition at line 51 of file FileBackendGroup.php.

References $wgFileBackends, $wgForeignFileRepos, and $wgLocalFileRepo.

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

Register an array of file backend configurations.

Parameters:
$configsArray
Returns:
void
Exceptions:
MWException

Definition at line 103 of file FileBackendGroup.php.

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

Definition at line 29 of file FileBackendGroup.php.

References $instance.

Referenced by FileRepo\__construct().

Here is the caller graph for this function:


Member Data Documentation

FileBackendGroup::$backends = array() [protected]

Definition at line 21 of file FileBackendGroup.php.

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

Definition at line 18 of file FileBackendGroup.php.

Referenced by singleton().


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