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 crc32 hash of given files
DOES_NOT_MATCH = 'fileCrc32DoesNotMatch'
NOT_DETECTED = 'fileCrc32NotDetected'
NOT_FOUND = 'fileCrc32NotFound'
string $_hash = ''
Hash of the file
array $_messageTemplates = 'array'
__construct(
string|array|Zend_Config $options
)
:
void
Sets validator options
addCrc32(
string|array $options
)
:
Zend_Validate_File_Hash
Adds the crc32 hash for one or multiple files
addHash(
string|array $options
)
:
Zend_Validate_File_Hash
Adds the crc32 hash for one or multiple files
getCrc32(
)
:
array
Returns all set crc32 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
setCrc32(
string|array $options
)
:
Zend_Validate_File_Hash
Sets the crc32 hash for one or multiple files
setHash(
string|array $options
)
:
Zend_Validate_File_Hash
Sets the crc32 hash for one or multiple files