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 md5 hash of given files
DOES_NOT_MATCH = 'fileMd5DoesNotMatch'
NOT_DETECTED = 'fileMd5NotDetected'
NOT_FOUND = 'fileMd5NotFound'
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 md5 hash for one or multiple files
addMd5(
string|array $options
)
:
Zend_Validate_File_Hash
Adds the md5 hash for one or multiple files
getMd5(
)
:
array
Returns all set md5 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 md5 hash for one or multiple files
setMd5(
string|array $options
)
:
Zend_Validate_File_Hash
Sets the md5 hash for one or multiple files