Validator for the mime type of a file
Located in /Validate/File/MimeType.php (line 35)
Zend_Validate_Abstract | --Zend_Validate_File_MimeType
Class | Description |
---|---|
![]() |
Validator which checks if the file already exists in the directory |
![]() |
Validator which checks if the file already exists in the directory |
![]() |
Validator for the mime type of a file |
Finfo object to use
Option to allow header check
Magicfile to use
If no $_ENV['MAGIC'] is set, try and autodiscover it based on common locations
Mimetypes
If null, there is no mimetype
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
Sets validator options
Mimetype to accept
Adds the mimetypes
Defines if the http header should be used Note that this is unsave and therefor the default value is false
Returns the Header Check option
Returns the actual set magicfile
Returns the set mimetypes
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.
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
Sets the mimetypes
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