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'
      
 Details NOT_DETECTED = 'fileSha1NotDetected'
      
 Details NOT_FOUND = 'fileSha1NotFound'
      
 Detailsstring $_hash = ''Hash of the file
 Detailsarray $_messageTemplates = 'array'
 Details__construct(
          string|array $options
          )
        
        :
        voidSets validator options
$hash is the hash we accept for the file $file
 DetailsaddHash(
          string|array $options
          )
        
        :
        Zend_Validate_File_HashAdds the sha1 hash for one or multiple files
 DetailsaddSha1(
          string|array $options
          )
        
        :
        Zend_Validate_File_HashAdds the sha1 hash for one or multiple files
 DetailsgetSha1(
          
          )
        
        :
        arrayReturns all set sha1 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
 DetailssetHash(
          string|array $options
          )
        
        :
        Zend_Validate_File_HashSets the sha1 hash for one or multiple files
 DetailssetSha1(
          string|array $options
          )
        
        :
        Zend_Validate_File_HashSets the sha1 hash for one or multiple files
 Details