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 hash of given files
DOES_NOT_MATCH = 'fileHashDoesNotMatch'
NOT_DETECTED = 'fileHashHashNotDetected'
NOT_FOUND = 'fileHashNotFound'
string $_hash = ''
Hash of the file
array $_messageTemplates = 'array'
__construct(
string|array $options
)
:
void
Sets validator options
_throw(
string $file, string $errorType
)
:
false
Throws an error of the given type
addHash(
string|array $options
)
:
Zend_Validate_File_Hash
Adds the hash for one or multiple files
getHash(
)
:
array
Returns the set hash values as array, the hash as key and the algorithm the value
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 hash for one or multiple files