[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
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: | 404 lines (11 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Zend_Validate_File_Size:: (13 methods):
__construct()
setUseByteString()
useByteString()
getMin()
setMin()
getMax()
setMax()
_getSize()
_setSize()
isValid()
_toByteString()
_fromByteString()
_throw()
Class: Zend_Validate_File_Size - X-Ref
Validator for the maximum size of a file up to a max of 2GB__construct($options) X-Ref |
Sets validator options If $options is a integer, it will be used as maximum filesize As Array is accepts the following keys: 'min': Minimum filesize 'max': Maximum filesize 'bytestring': Use bytestring or real size for messages param: integer|array $options Options for the adapter |
setUseByteString($byteString = true) X-Ref |
Returns the minimum filesize param: boolean $byteString Use bytestring ? return: integer |
useByteString() X-Ref |
Will bytestring be used? return: boolean |
getMin($raw = false) X-Ref |
Returns the minimum filesize param: bool $raw Whether or not to force return of the raw value (defaults off) return: integer|string |
setMin($min) X-Ref |
Sets the minimum filesize param: integer $min The minimum filesize return: Zend_Validate_File_Size Provides a fluent interface |
getMax($raw = false) X-Ref |
Returns the maximum filesize param: bool $raw Whether or not to force return of the raw value (defaults off) return: integer|string |
setMax($max) X-Ref |
Sets the maximum filesize param: integer $max The maximum filesize return: Zend_Validate_StringLength Provides a fluent interface |
_getSize() X-Ref |
Retrieve current detected file size return: int |
_setSize($size) X-Ref |
Set current size param: int $size return: Zend_Validate_File_Size |
isValid($value, $file = null) X-Ref |
Defined by Zend_Validate_Interface Returns true if and only if the filesize of $value is at least min and not bigger than max (when max is not null). param: string $value Real file to check for size param: array $file File data from Zend_File_Transfer return: boolean |
_toByteString($size) X-Ref |
Returns the formatted size param: integer $size return: string |
_fromByteString($size) X-Ref |
Returns the unformatted size param: string $size return: integer |
_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 |