MediaWiki
REL1_19
|
Class to handle file backend registration. More...
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 |
Class to handle file backend registration.
Definition at line 14 of file FileBackendGroup.php.
FileBackendGroup::__construct | ( | ) | [protected] |
Definition at line 23 of file FileBackendGroup.php.
FileBackendGroup::__clone | ( | ) | [protected] |
Definition at line 24 of file FileBackendGroup.php.
FileBackendGroup::backendFromPath | ( | $ | storagePath | ) |
Get an appropriate backend object from a storage path.
$storagePath | string |
Definition at line 149 of file FileBackendGroup.php.
References FileBackend\splitStoragePath().
static FileBackendGroup::destroySingleton | ( | ) | [static] |
Destroy the singleton instance.
Definition at line 42 of file FileBackendGroup.php.
Referenced by UploadFromUrlTestSuite\setUp(), NewParserTest\setupGlobals(), UploadFromUrlTestSuite\tearDown(), and NewParserTest\tearDown().
FileBackendGroup::get | ( | $ | name | ) |
Get the backend object with a given name.
$name | string |
MWException |
Definition at line 130 of file FileBackendGroup.php.
FileBackendGroup::initFromGlobals | ( | ) | [protected] |
Register file backends from the global variables.
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.
$configs | Array |
MWException |
Definition at line 103 of file FileBackendGroup.php.
static FileBackendGroup::singleton | ( | ) | [static] |
Definition at line 29 of file FileBackendGroup.php.
References $instance.
Referenced by FileRepo\__construct().
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().