[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Validate/File/ -> Md5.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: 183 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Validate_File_Md5:: (7 methods):
  __construct()
  getMd5()
  setHash()
  setMd5()
  addHash()
  addMd5()
  isValid()


Class: Zend_Validate_File_Md5  - X-Ref

Validator for the md5 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

getMd5()   X-Ref
Returns all set md5 hashes

return: array

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

param: string|array $options
param: string       $algorithm (Deprecated) Algorithm to use, fixed to md5
return: Zend_Validate_File_Hash Provides a fluent interface

setMd5($options)   X-Ref
Sets the md5 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 md5 hash for one or multiple files

param: string|array $options
param: string       $algorithm (Deprecated) Algorithm to use, fixed to md5
return: Zend_Validate_File_Hash Provides a fluent interface

addMd5($options)   X-Ref
Adds the md5 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