PHP Class Pimcore\Document

Show file Open project: pimcore/pimcore Class Usage Examples

Public Methods

Method Description
getDefaultAdapter ( ) : boolean | Pimcore\Document\Adapter Returns adapter class if exists or false if doesn't exist
getInstance ( null $adapter = null ) : boolean | null | Document Singleton for Pimcore\Document
isAvailable ( ) : boolean Checks if adapter is available.
isFileTypeSupported ( $filetype ) : boolean Checks if a file type is supported by the adapter.

Method Details

getDefaultAdapter() public static method

Returns adapter class if exists or false if doesn't exist
public static getDefaultAdapter ( ) : boolean | Pimcore\Document\Adapter
return boolean | Pimcore\Document\Adapter

getInstance() public static method

Singleton for Pimcore\Document
public static getInstance ( null $adapter = null ) : boolean | null | Document
$adapter null
return boolean | null | Document

isAvailable() public static method

Checks if adapter is available.
public static isAvailable ( ) : boolean
return boolean

isFileTypeSupported() public static method

Checks if a file type is supported by the adapter.
public static isFileTypeSupported ( $filetype ) : boolean
$filetype
return boolean