BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
FileBackendGroup Class Reference

Public Member Functions

 get ($name)
 
 config ($name)
 
 backendFromPath ($storagePath)
 
 guessMimeInternal ($storagePath, $content, $fsPath)
 

Static Public Member Functions

static singleton ()
 
static destroySingleton ()
 

Protected Member Functions

 initFromGlobals ()
 
 register (array $configs, $readOnlyReason=null)
 

Protected Attributes

 $backends = []
 

Static Protected Attributes

static $instance = null
 

Detailed Description

Class to handle file backend registration

Since
1.19

Member Function Documentation

FileBackendGroup::backendFromPath (   $storagePath)

Get an appropriate backend object from a storage path

Parameters
string$storagePath
Returns
FileBackend|null Backend or null on failure
FileBackendGroup::config (   $name)

Get the config array for a backend object with a given name

Parameters
string$name
Returns
array
Exceptions
FileBackendException
static FileBackendGroup::destroySingleton ( )
static

Destroy the singleton instance

FileBackendGroup::get (   $name)

Get the backend object with a given name

Parameters
string$name
Returns
FileBackend
Exceptions
FileBackendException
FileBackendGroup::guessMimeInternal (   $storagePath,
  $content,
  $fsPath 
)
Parameters
string$storagePath
string | null$content
string | null$fsPath
Returns
string
Since
1.27
FileBackendGroup::initFromGlobals ( )
protected

Register file backends from the global variables

FileBackendGroup::register ( array  $configs,
  $readOnlyReason = null 
)
protected

Register an array of file backend configurations

Parameters
array$configs
string | null$readOnlyReason
Exceptions
FileBackendException
static FileBackendGroup::singleton ( )
static

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