ZurmoFileHelper Class Reference

Static Public Member Functions

static getMimeType ($file, $magicFile=null, $checkExtension=true)
static getMimeTypeByExtension ($file, $magicFile=null)

Detailed Description

Helper class that overrides CFileHelper with some additional functionality for handling various file operations.

Definition at line 40 of file ZurmoFileHelper.php.


Member Function Documentation

static getMimeType ( file,
magicFile = null,
checkExtension = true 
) [static]

Override to handle custom MimeType file if no mime extension can be found using built in methods. Checks first the zurmo provided mime type database. This is done first to ensure that extensions are not incorrectly reported.

Parameters:
mixed $file - $file can be file or string that contain filename
array $magicFile
boolean $checkExtension
See also:
CFileHandler::getMimeType

Definition at line 51 of file ZurmoFileHelper.php.

static getMimeTypeByExtension ( file,
magicFile = null 
) [static]

Override to handle custom MimeType file if no mime extension can be found using built in methods.

Parameters:
mixed $file - $file can be string(filename) or file
array $magicFile
See also:
CFileHandler::getMimeTypeByExtension

Definition at line 100 of file ZurmoFileHelper.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun May 28 07:10:32 2017