eZPublishCommunityProject  2012.12
eZ\Publish\Core\FieldType\BinaryBase\MimeTypeDetector\FileInfoDetector Class Reference
+ Inheritance diagram for eZ\Publish\Core\FieldType\BinaryBase\MimeTypeDetector\FileInfoDetector:
+ Collaboration diagram for eZ\Publish\Core\FieldType\BinaryBase\MimeTypeDetector\FileInfoDetector:

Public Member Functions

 __construct ()
 Checks for the required ext/fileinfo. More...
 
 getMimeType ($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\FieldType\BinaryBase\MimeTypeDetector\FileInfoDetector::__construct ( )

Checks for the required ext/fileinfo.

Member Function Documentation

eZ\Publish\Core\FieldType\BinaryBase\MimeTypeDetector\FileInfoDetector::getFileInfo ( )
protected

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

Returns

Referenced by eZ\Publish\Core\FieldType\BinaryBase\MimeTypeDetector\FileInfoDetector\getMimeType().

eZ\Publish\Core\FieldType\BinaryBase\MimeTypeDetector\FileInfoDetector::getMimeType (   $path)

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

Parameters
string$path
Returns
string

Implements eZ\Publish\Core\FieldType\BinaryBase\MimeTypeDetector.

Member Data Documentation

eZ\Publish\Core\FieldType\BinaryBase\MimeTypeDetector\FileInfoDetector::$fileInfo
protected

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