Public Member Functions | |
__construct ($options) | |
getSha1 () | |
setHash ($options) | |
setSha1 ($options) | |
addHash ($options) | |
addSha1 ($options) | |
isValid ($value, $file=null) | |
Data Fields | |
const | DOES_NOT_MATCH = 'fileSha1DoesNotMatch' |
const | NOT_DETECTED = 'fileSha1NotDetected' |
const | NOT_FOUND = 'fileSha1NotFound' |
Protected Attributes | |
$_messageTemplates | |
$_hash |
Definition at line 35 of file Sha1.php.
__construct | ( | $ | options ) |
Sets validator options
$hash is the hash we accept for the file $file
string | array | $options |
Reimplemented from Zend_Validate_File_Hash.
addHash | ( | $ | options ) |
Adds the sha1 hash for one or multiple files
string | array | $options |
Reimplemented from Zend_Validate_File_Hash.
addSha1 | ( | $ | options ) |
Adds the sha1 hash for one or multiple files
string | array | $options |
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.
setHash | ( | $ | options ) |
Sets the sha1 hash for one or multiple files
string | array | $options |
Reimplemented from Zend_Validate_File_Hash.
setSha1 | ( | $ | options ) |
Sets the sha1 hash for one or multiple files
string | array | $options |
$_messageTemplates [protected] |
array( self::DOES_NOT_MATCH => "The file '%value%' does not match the given sha1 hashes", self::NOT_DETECTED => "There was no sha1 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 = 'fileSha1DoesNotMatch' |
string Error constants
Reimplemented from Zend_Validate_File_Hash.