[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

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

Defines 1 class

Zend_Validate_File_ImageSize:: (11 methods):
  __construct()
  getImageMin()
  getImageMax()
  getImageWidth()
  getImageHeight()
  setImageMin()
  setImageMax()
  setImageWidth()
  setImageHeight()
  isValid()
  _throw()


Class: Zend_Validate_File_ImageSize  - X-Ref

Validator for the image size of a image file

__construct($options)   X-Ref
Sets validator options

Accepts the following option keys:
- minheight
- minwidth
- maxheight
- maxwidth

param: Zend_Config|array $options
return: void

getImageMin()   X-Ref
Returns the set minimum image sizes

return: array

getImageMax()   X-Ref
Returns the set maximum image sizes

return: array

getImageWidth()   X-Ref
Returns the set image width sizes

return: array

getImageHeight()   X-Ref
Returns the set image height sizes

return: array

setImageMin($options)   X-Ref
Sets the minimum image size

param: array $options               The minimum image dimensions
return: Zend_Validate_File_ImageSize Provides a fluent interface

setImageMax($options)   X-Ref
Sets the maximum image size

param: array $options          The maximum image dimensions
return: Zend_Validate_StringLength Provides a fluent interface

setImageWidth($options)   X-Ref
Sets the mimimum and maximum image width

param: array $options               The image width dimensions
return: Zend_Validate_File_ImageSize Provides a fluent interface

setImageHeight($options)   X-Ref
Sets the mimimum and maximum image height

param: array $options               The image height dimensions
return: Zend_Validate_File_ImageSize Provides a fluent interface

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

Returns true if and only if the imagesize of $value is at least min and
not bigger than max

param: string $value Real file to check for image size
param: array  $file  File data from Zend_File_Transfer
return: boolean

_throw($file, $errorType)   X-Ref
Throws an error of the given type

param: string $file
param: string $errorType
return: false



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