|
MediaWiki
REL1_23
|
Class to handle file backend registration. More...

Public Member Functions | |
| backendFromPath ($storagePath) | |
| Get an appropriate backend object from a storage path. | |
| config ($name) | |
| Get the config array for a backend object with a given name. | |
| 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 | |
| __construct () | |
| initFromGlobals () | |
| Register file backends from the global variables. | |
| register (array $configs) | |
| Register an array of file backend configurations. | |
Protected Attributes | |
| array | $backends = array() |
| (name => ('class' => string, 'config' => array, 'instance' => object)) * | |
Static Protected Attributes | |
| static | $instance = null |
Class to handle file backend registration.
Definition at line 31 of file FileBackendGroup.php.
| FileBackendGroup::__construct | ( | ) | [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.
| 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 FileBackendGroup::destroySingleton | ( | ) | [static] |
Destroy the singleton instance.
Definition at line 55 of file FileBackendGroup.php.
Referenced by ForkController\prepareEnvironment(), UploadFromUrlTestSuite\setUp(), NewParserTest\setupGlobals(), UploadFromUrlTestSuite\tearDown(), and NewParserTest\tearDown().
| FileBackendGroup::get | ( | $ | name | ) |
Get the backend object with a given name.
| string | $name |
| FileBackendException |
Definition at line 146 of file FileBackendGroup.php.
| FileBackendGroup::initFromGlobals | ( | ) | [protected] |
Register file backends from the global variables.
Definition at line 62 of file FileBackendGroup.php.
| FileBackendGroup::register | ( | array $ | configs | ) | [protected] |
Register an array of file backend configurations.
| array | $configs |
| FileBackendException |
Definition at line 117 of file FileBackendGroup.php.
| static FileBackendGroup::singleton | ( | ) | [static] |
Definition at line 43 of file FileBackendGroup.php.
Referenced by 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.
FileBackendGroup::$instance = null [static, protected] |
Definition at line 33 of file FileBackendGroup.php.