OpenMediaVault  3.0 (Erasmus)
The open network attached storage solution
Public Member Functions | Static Public Member Functions | List of all members
OMV\System\Storage\Backend\Manager Class Reference
Inheritance diagram for OMV\System\Storage\Backend\Manager:

Public Member Functions

 getIterator ()
 
 registerBackend (BackendAbstract $backend)
 
 getBackend ($deviceFile)
 
 assertBackendExists ($deviceFile)
 

Static Public Member Functions

static & getInstance ()
 

Detailed Description

Helper class to get all existing devices of the given storage type.

Member Function Documentation

OMV\System\Storage\Backend\Manager::assertBackendExists (   $deviceFile)
final

Assert that a backend for the given device exists.

Parameters
deviceFileSpecifies the device file.
Exceptions
OMV\System\Storage\Backend\Manager::getBackend (   $deviceFile)
final

Get the backend of the given device.

Parameters
deviceFileSpecifies the device file.
Returns
The backend that implements the given device file, otherwise NULL.
static& OMV\System\Storage\Backend\Manager::getInstance ( )
static

Returns a manager singleton.

Returns
The manager object.
OMV\System\Storage\Backend\Manager::registerBackend ( BackendAbstract  $backend)
final

Register a storage device backend. If the registered backend class is derived from another backend, then it will be inserted before this.

Parameters
backendThe storage device backend object to register.
Returns
TRUE if successful, otherwise FALSE.

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