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

Public Member Functions

 __construct ($mimetype=array())

Data Fields

const FALSE_TYPE = 'fileIsCompressedFalseType'
const NOT_DETECTED = 'fileIsCompressedNotDetected'
const NOT_READABLE = 'fileIsCompressedNotReadable'

Protected Member Functions

 _throw ($file, $errorType)

Protected Attributes

 $_messageTemplates

Detailed Description

Definition at line 35 of file IsCompressed.php.


Constructor & Destructor Documentation

__construct ( mimetype = array())

Sets validator options

Parameters:
string | array | Zend_Config$compression
Returns:
void

Reimplemented from Zend_Validate_File_MimeType.

Definition at line 59 of file IsCompressed.php.


Member Function Documentation

_throw ( file,
errorType 
) [protected]

Throws an error of the given type Duplicates parent method due to OOP Problem with late static binding in PHP 5.2

Parameters:
string$file
string$errorType
Returns:
false

Reimplemented from Zend_Validate_File_MimeType.

Definition at line 131 of file IsCompressed.php.

Here is the call graph for this function:


Field Documentation

$_messageTemplates [protected]
Initial value:
 array(
        self::FALSE_TYPE   => "File '%value%' is not compressed, '%type%' detected",
        self::NOT_DETECTED => "The mimetype of file '%value%' could not been detected",
        self::NOT_READABLE => "File '%value%' can not be read",
    )

Reimplemented from Zend_Validate_File_MimeType.

Definition at line 47 of file IsCompressed.php.

const FALSE_TYPE = 'fileIsCompressedFalseType'

string Error constants

Reimplemented from Zend_Validate_File_MimeType.

Definition at line 40 of file IsCompressed.php.

const NOT_DETECTED = 'fileIsCompressedNotDetected'

Reimplemented from Zend_Validate_File_MimeType.

Definition at line 41 of file IsCompressed.php.

const NOT_READABLE = 'fileIsCompressedNotReadable'

Reimplemented from Zend_Validate_File_MimeType.

Definition at line 42 of file IsCompressed.php.


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