[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Validate/File/ -> Sha1.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 181 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Validate_File_Sha1:: (7 methods):
  __construct()
  getSha1()
  setHash()
  setSha1()
  addHash()
  addSha1()
  isValid()


Class: Zend_Validate_File_Sha1  - X-Ref

Validator for the sha1 hash of given files

__construct($options)   X-Ref
Sets validator options

$hash is the hash we accept for the file $file

param: string|array $options
return: void

getSha1()   X-Ref
Returns all set sha1 hashes

return: array

setHash($options)   X-Ref
Sets the sha1 hash for one or multiple files

param: string|array $options
return: Zend_Validate_File_Hash Provides a fluent interface

setSha1($options)   X-Ref
Sets the sha1 hash for one or multiple files

param: string|array $options
return: Zend_Validate_File_Hash Provides a fluent interface

addHash($options)   X-Ref
Adds the sha1 hash for one or multiple files

param: string|array $options
return: Zend_Validate_File_Hash Provides a fluent interface

addSha1($options)   X-Ref
Adds the sha1 hash for one or multiple files

param: string|array $options
return: Zend_Validate_File_Hash Provides a fluent interface

isValid($value, $file = null)   X-Ref
Defined by Zend_Validate_Interface

Returns true if and only if the given file confirms the set hash

param: string $value Filename to check for hash
param: array  $file  File data from Zend_File_Transfer
return: boolean



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1