OpenMediaVault  0.6 (Kralizec)
The open network attached storage solution
 All Classes Functions Variables Groups Pages
Static Public Member Functions | List of all members
OMVStorageDeviceFactory Class Reference
Inheritance diagram for OMVStorageDeviceFactory:
OMVObject

Static Public Member Functions

static get ($deviceFile)
 

Additional Inherited Members

- Public Member Functions inherited from OMVObject
 __construct ()
 
 getLastError ()
 
- Protected Member Functions inherited from OMVObject
 setLastError ($error)
 
 debug ()
 

Detailed Description

Factory to create objects of storage device classes.

Member Function Documentation

static OMVStorageDeviceFactory::get (   $deviceFile)
static

Get the object of the class implementing the given storage device.

Parameters
deviceFileSpecifies the device file, e.g.
/dev/sdb
  • /dev/md1
  • /dev/cciss/c0d0
  • /dev/disk/by-id/scsi-SATA_ST3200XXXX2AS_5XWXXXR6
  • /dev/disk/by-label/DATA
  • /dev/disk/by-path/pci-0000:00:10.0-scsi-0:0:0:0
  • /dev/disk/by-uuid/ad3ee177-777c-4ad3-8353-9562f85c0895
Returns
The object of the class implementing the given storage device, otherwise NULL.

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