eZPublishCommunityProject  2013.6
eZ\Publish\Core\IO\MimeTypeDetector\FileInfo Class Reference
+ Inheritance diagram for eZ\Publish\Core\IO\MimeTypeDetector\FileInfo:
+ Collaboration diagram for eZ\Publish\Core\IO\MimeTypeDetector\FileInfo:

Public Member Functions

 __construct ()
 Checks for the required ext/fileinfo. More...
 
 getFromBuffer ($path)
 Returns the MIME type of the data in $buffer. More...
 
 getFromPath ($path)
 Returns the MIME type of the file identified by $path. More...
 

Protected Member Functions

 getFileInfo ()
 Creates a new (or re-uses) finfo object and returns it. More...
 

Protected Attributes

 $fileInfo
 

Constructor & Destructor Documentation

eZ\Publish\Core\IO\MimeTypeDetector\FileInfo::__construct ( )

Checks for the required ext/fileinfo.

Member Function Documentation

eZ\Publish\Core\IO\MimeTypeDetector\FileInfo::getFileInfo ( )
protected

Creates a new (or re-uses) finfo object and returns it.

Returns

Referenced by eZ\Publish\Core\IO\MimeTypeDetector\FileInfo\getFromBuffer(), and eZ\Publish\Core\IO\MimeTypeDetector\FileInfo\getFromPath().

eZ\Publish\Core\IO\MimeTypeDetector\FileInfo::getFromBuffer (   $buffer)

Returns the MIME type of the data in $buffer.

Parameters
string$buffer
Returns
string

Implements eZ\Publish\SPI\IO\MimeTypeDetector.

eZ\Publish\Core\IO\MimeTypeDetector\FileInfo::getFromPath (   $path)

Returns the MIME type of the file identified by $path.

Parameters
string$path
Returns
string

Implements eZ\Publish\SPI\IO\MimeTypeDetector.

Member Data Documentation

eZ\Publish\Core\IO\MimeTypeDetector\FileInfo::$fileInfo
protected

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