Moodle  2.2.1
http://www.collinsharper.com
Zend_Validate_File_ExcludeExtension Class Reference
Inheritance diagram for Zend_Validate_File_ExcludeExtension:
Collaboration diagram for Zend_Validate_File_ExcludeExtension:

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.

Here is the call graph for this function:


Field Documentation

$_messageTemplates [protected]
Initial value:
 array(
        self::FALSE_EXTENSION => "File '%value%' has a false extension",
        self::NOT_FOUND       => "File '%value%' could not be 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.

const NOT_FOUND = 'fileExcludeExtensionNotFound'

Reimplemented from Zend_Validate_File_Extension.

Definition at line 41 of file ExcludeExtension.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations