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'
Details NOT_DETECTED = 'fileCrc32NotDetected'
Details NOT_FOUND = 'fileCrc32NotFound'
Detailsstring $_hash = ''Hash of the file
Detailsarray $_messageTemplates = 'array'
Details__construct(
string|array|Zend_Config $options
)
:
voidSets validator options
DetailsaddCrc32(
string|array $options
)
:
Zend_Validate_File_HashAdds the crc32 hash for one or multiple files
DetailsaddHash(
string|array $options
)
:
Zend_Validate_File_HashAdds the crc32 hash for one or multiple files
DetailsgetCrc32(
)
:
arrayReturns all set crc32 hashes
DetailsisValid(
string $value, array $file
=
null
)
:
booleanDefined by Zend_Validate_Interface
Returns true if and only if the given file confirms the set hash
DetailssetCrc32(
string|array $options
)
:
Zend_Validate_File_HashSets the crc32 hash for one or multiple files
DetailssetHash(
string|array $options
)
:
Zend_Validate_File_HashSets the crc32 hash for one or multiple files
Details