Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Validator for the sha1 hash of given files
DOES_NOT_MATCH = 'fileSha1DoesNotMatch'
NOT_DETECTED = 'fileSha1NotDetected'
NOT_FOUND = 'fileSha1NotFound'
string $_hash = ''
Hash of the file
array $_messageTemplates = 'array'
__construct(
string|array $options
)
:
void
Sets validator options
$hash is the hash we accept for the file $file
addHash(
string|array $options
)
:
Zend_Validate_File_Hash
Adds the sha1 hash for one or multiple files
addSha1(
string|array $options
)
:
Zend_Validate_File_Hash
Adds the sha1 hash for one or multiple files
getSha1(
)
:
array
Returns all set sha1 hashes
isValid(
string $value, array $file
=
null
)
:
boolean
Defined by Zend_Validate_Interface
Returns true if and only if the given file confirms the set hash
setHash(
string|array $options
)
:
Zend_Validate_File_Hash
Sets the sha1 hash for one or multiple files
setSha1(
string|array $options
)
:
Zend_Validate_File_Hash
Sets the sha1 hash for one or multiple files