API Documentation

Validate/File/ExcludeMimeType.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
version
$Id: ExcludeMimeType.php 21936 2010-04-18 16:23:34Z thomas $
Classes
Zend_Validate_File_ExcludeMimeType

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Validate_File_ExcludeMimeType

Extends from
Zend_Validate_File_MimeType
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
Constants
FALSE_TYPE
NOT_DETECTED
NOT_READABLE
Methods
isValid

Description

Validator for the mime type of a file

Constants

FALSE_TYPE

 FALSE_TYPE = 'fileExcludeMimeTypeFalse'

Details

value
fileExcludeMimeTypeFalse

NOT_DETECTED

 NOT_DETECTED = 'fileExcludeMimeTypeNotDetected'

Details

value
fileExcludeMimeTypeNotDetected

NOT_READABLE

 NOT_READABLE = 'fileExcludeMimeTypeNotReadable'

Details

value
fileExcludeMimeTypeNotReadable

Methods

isValid

isValid( string $value, array $file = null ) : boolean

Defined by Zend_Validate_Interface

Returns true if the mimetype of the file does not matche the given ones. Also parts of mimetypes can be checked. If you give for example "image" all image mime types will not be accepted like "image/gif", "image/jpeg" and so on.

Arguments
$value
string
Real file to check for mimetype
$file
array
File data from Zend_File_Transfer
Output
boolean
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.