Public Member Functions | Data Fields | Protected Attributes

Zend_Validate_File_ExcludeExtension Class Reference

Inheritance diagram for Zend_Validate_File_ExcludeExtension:
Zend_Validate_File_Extension Zend_Validate_Abstract Zend_Validate_Interface

Public Member Functions

 isValid ($value, $file=null)

Data Fields

const FALSE_EXTENSION = 'fileExcludeExtensionFalse'
const NOT_FOUND = 'fileExcludeExtensionNotFound'

Protected Attributes

 $_messageTemplates

Detailed Description

Definition at line 35 of file ExcludeExtension.php.


Member Function Documentation

isValid ( value,
file = null 
)

Defined by Zend_Validate_Interface

Returns true if and only if the fileextension of $value is not included in the set extension list

Parameters:
string$valueReal file to check for extension
array$fileFile data from Zend_File_Transfer
Returns:
boolean

Reimplemented from Zend_Validate_File_Extension.

Definition at line 61 of file ExcludeExtension.php.


Field Documentation

$_messageTemplates [protected]
Initial value:
 array(
        self::FALSE_EXTENSION => "The file '%value%' has a false extension",
        self::NOT_FOUND       => "The file '%value%' was not found"
    )

Reimplemented from Zend_Validate_File_Extension.

Definition at line 46 of file ExcludeExtension.php.

const FALSE_EXTENSION = 'fileExcludeExtensionFalse'

string Error constants

Reimplemented from Zend_Validate_File_Extension.

Definition at line 40 of file ExcludeExtension.php.


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