MediaWiki
1.23.2
|
Class to handle file backend registration. More...
Public Member Functions | |
backendFromPath ( $storagePath) | |
Get an appropriate backend object from a storage path. More... | |
config ( $name) | |
Get the config array for a backend object with a given name. More... | |
get ( $name) | |
Get the backend object with a given name. More... | |
Static Public Member Functions | |
static | destroySingleton () |
Destroy the singleton instance. More... | |
static | singleton () |
Protected Member Functions | |
__construct () | |
initFromGlobals () | |
Register file backends from the global variables. More... | |
register (array $configs) | |
Register an array of file backend configurations. More... | |
Protected Attributes | |
array | $backends = array() |
(name => ('class' => string, 'config' => array, 'instance' => object)) * More... | |
Static Protected Attributes | |
static | $instance = null |
Class to handle file backend registration.
Definition at line 31 of file FileBackendGroup.php.
|
protected |
Definition at line 37 of file FileBackendGroup.php.
FileBackendGroup::backendFromPath | ( | $storagePath | ) |
Get an appropriate backend object from a storage path.
string | $storagePath |
Definition at line 190 of file FileBackendGroup.php.
References list, and FileBackend\splitStoragePath().
FileBackendGroup::config | ( | $name | ) |
Get the config array for a backend object with a given name.
string | $name |
FileBackendException |
Definition at line 175 of file FileBackendGroup.php.
|
static |
Destroy the singleton instance.
Definition at line 55 of file FileBackendGroup.php.
Referenced by ForkController\prepareEnvironment(), UploadFromUrlTestSuite\setUp(), and UploadFromUrlTestSuite\tearDown().
FileBackendGroup::get | ( | $name | ) |
Get the backend object with a given name.
string | $name |
FileBackendException |
Definition at line 146 of file FileBackendGroup.php.
References $name, array(), FileJournal\factory(), LockManagerGroup\singleton(), and wfWikiID().
|
protected |
Register file backends from the global variables.
Definition at line 62 of file FileBackendGroup.php.
|
protected |
Register an array of file backend configurations.
array | $configs |
FileBackendException |
Definition at line 117 of file FileBackendGroup.php.
|
static |
Definition at line 43 of file FileBackendGroup.php.
References $instance.
Referenced by FileBackendMultiWrite\__construct(), FileRepo\__construct(), ExternalStoreMwstore\batchFetchFromURLs(), TestFileOpPerformance\execute(), SyncFileBackend\execute(), CopyFileBackend\execute(), ExternalStoreMwstore\fetchFromURL(), and ExternalStoreMwstore\store().
(name => ('class' => string, 'config' => array, 'instance' => object)) *
Definition at line 35 of file FileBackendGroup.php.
|
staticprotected |
Definition at line 33 of file FileBackendGroup.php.
Referenced by singleton().