Zend_Validate_File_MimeTypeValidator for the mime type of a file
Located in /Validate/File/MimeType.php (line 35)
Zend_Validate_Abstract | --Zend_Validate_File_MimeType
| Class | Description |
|---|---|
Zend_Validate_File_IsCompressed
|
Validator which checks if the file already exists in the directory |
Zend_Validate_File_IsImage
|
Validator which checks if the file already exists in the directory |
Zend_Validate_File_ExcludeMimeType
|
Validator for the mime type of a file |
resource
$_finfo
(line 87)
Finfo object to use
boolean
$_headerCheck
= false (line 110)
Option to allow header check
string|null
$_magicfile
(line 80)
Magicfile to use
array
$_magicFiles
= array(If no $_ENV['MAGIC'] is set, try and autodiscover it based on common locations
array
$_messageTemplates
= array(
array
$_messageVariables
= array(
string|null
$_mimetype
(line 73)
Mimetypes
If null, there is no mimetype
string
$_type
(line 64)
Inherited from Zend_Validate_Abstract
Zend_Validate_Abstract::$_defaultTranslator
Zend_Validate_Abstract::$_errors
Zend_Validate_Abstract::$_messageLength
Zend_Validate_Abstract::$_messages
Zend_Validate_Abstract::$_obscureValue
Zend_Validate_Abstract::$_translator
Zend_Validate_Abstract::$_translatorDisabled
Zend_Validate_Abstract::$_value
Constructor __construct (line 120)
Sets validator options
Mimetype to accept
addMimeType (line 271)
Adds the mimetypes
enableHeaderCheck (line 229)
Defines if the http header should be used Note that this is unsave and therefor the default value is false
getHeaderCheck (line 217)
Returns the Header Check option
getMagicFile (line 149)
Returns the actual set magicfile
getMimeType (line 241)
Returns the set mimetypes
isValid (line 317)
Defined by Zend_Validate_Interface
Returns true if the mimetype of the file matches the given ones. Also parts of mimetypes can be checked. If you give for example "image" all image mime types will be accepted like "image/gif", "image/jpeg" and so on.
setMagicFile (line 186)
Sets the magicfile to use if null, the MAGIC constant from php is used if the MAGIC file is errorous, no file will be set
setMimeType (line 258)
Sets the mimetypes
_throw (line 386)
Throws an error of the given type
Inherited From Zend_Validate_Abstract
Zend_Validate_Abstract::getDefaultTranslator()
Zend_Validate_Abstract::getErrors()
Zend_Validate_Abstract::getMessageLength()
Zend_Validate_Abstract::getMessages()
Zend_Validate_Abstract::getMessageTemplates()
Zend_Validate_Abstract::getMessageVariables()
Zend_Validate_Abstract::getObscureValue()
Zend_Validate_Abstract::getTranslator()
Zend_Validate_Abstract::hasDefaultTranslator()
Zend_Validate_Abstract::hasTranslator()
Zend_Validate_Abstract::setDefaultTranslator()
Zend_Validate_Abstract::setDisableTranslator()
Zend_Validate_Abstract::setMessage()
Zend_Validate_Abstract::setMessageLength()
Zend_Validate_Abstract::setMessages()
Zend_Validate_Abstract::setObscureValue()
Zend_Validate_Abstract::setTranslator()
Zend_Validate_Abstract::translatorIsDisabled()
Zend_Validate_Abstract::_createMessage()
Zend_Validate_Abstract::_error()
Zend_Validate_Abstract::_setValue()
Zend_Validate_Abstract::__get()
Documentation generated on Mon, 21 Jun 2010 15:34:00 -0400 by phpDocumentor 1.4.3