|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($mimetype=array()) | |
Data Fields | |
| const | FALSE_TYPE = 'fileIsImageFalseType' |
| const | NOT_DETECTED = 'fileIsImageNotDetected' |
| const | NOT_READABLE = 'fileIsImageNotReadable' |
Protected Member Functions | |
| _throw ($file, $errorType) | |
Protected Attributes | |
| $_messageTemplates | |
Definition at line 35 of file IsImage.php.
| __construct | ( | $ | mimetype = array() | ) |
Sets validator options
| string | array | Zend_Config | $mimetype |
Reimplemented from Zend_Validate_File_MimeType.
Definition at line 59 of file IsImage.php.
| _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
| string | $file | |
| string | $errorType |
Reimplemented from Zend_Validate_File_MimeType.
Definition at line 155 of file IsImage.php.

$_messageTemplates [protected] |
array( self::FALSE_TYPE => "File '%value%' is no image, '%type%' detected", self::NOT_DETECTED => "The mimetype of file '%value%' could not be detected", self::NOT_READABLE => "File '%value%' can not be read", )
Reimplemented from Zend_Validate_File_MimeType.
Definition at line 47 of file IsImage.php.
| const FALSE_TYPE = 'fileIsImageFalseType' |
string Error constants
Reimplemented from Zend_Validate_File_MimeType.
Definition at line 40 of file IsImage.php.
| const NOT_DETECTED = 'fileIsImageNotDetected' |
Reimplemented from Zend_Validate_File_MimeType.
Definition at line 41 of file IsImage.php.
| const NOT_READABLE = 'fileIsImageNotReadable' |
Reimplemented from Zend_Validate_File_MimeType.
Definition at line 42 of file IsImage.php.