Public Member Functions | |
__construct ($options) | |
getCrc32 () | |
setHash ($options) | |
setCrc32 ($options) | |
addHash ($options) | |
addCrc32 ($options) | |
isValid ($value, $file=null) | |
Data Fields | |
const | DOES_NOT_MATCH = 'fileCrc32DoesNotMatch' |
const | NOT_DETECTED = 'fileCrc32NotDetected' |
const | NOT_FOUND = 'fileCrc32NotFound' |
Protected Attributes | |
$_messageTemplates | |
$_hash |
Definition at line 35 of file Crc32.php.
__construct | ( | $ | options ) |
Sets validator options
string | array | Zend_Config | $options |
Reimplemented from Zend_Validate_File_Hash.
addCrc32 | ( | $ | options ) |
Adds the crc32 hash for one or multiple files
string | array | $options |
addHash | ( | $ | options ) |
Adds the crc32 hash for one or multiple files
string | array | $options |
Reimplemented from Zend_Validate_File_Hash.
isValid | ( | $ | value, |
$ | file = null |
||
) |
Defined by Zend_Validate_Interface
Returns true if and only if the given file confirms the set hash
string | $value | Filename to check for hash |
array | $file | File data from Zend_File_Transfer |
Reimplemented from Zend_Validate_File_Hash.
setCrc32 | ( | $ | options ) |
Sets the crc32 hash for one or multiple files
string | array | $options |
setHash | ( | $ | options ) |
Sets the crc32 hash for one or multiple files
string | array | $options |
Reimplemented from Zend_Validate_File_Hash.
$_messageTemplates [protected] |
array( self::DOES_NOT_MATCH => "The file '%value%' does not match the given crc32 hashes", self::NOT_DETECTED => "There was no crc32 hash detected for the given file", self::NOT_FOUND => "The file '%value%' could not be found" )
Reimplemented from Zend_Validate_File_Hash.
const DOES_NOT_MATCH = 'fileCrc32DoesNotMatch' |
string Error constants
Reimplemented from Zend_Validate_File_Hash.