Ejemplo n.º 1
0
 /**
  * Sets the sha1 hash for one or multiple files
  *
  * @param  string|array $options
  * @return IfwPsn_Vendor_Zend_Validate_File_Hash Provides a fluent interface
  */
 public function setHash($options)
 {
     if (!is_array($options)) {
         $options = (array) $options;
     }
     $options['algorithm'] = 'sha1';
     parent::setHash($options);
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * Sets the crc32 hash for one or multiple files
  *
  * @param  string|array $options
  * @return IfwPsn_Vendor_Zend_Validate_File_Hash Provides a fluent interface
  */
 public function setHash($options)
 {
     if (!is_array($options)) {
         $options = array($options);
     }
     $options['algorithm'] = 'crc32';
     parent::setHash($options);
     return $this;
 }