API Documentation

Validate/File/FilesSize.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
version
$Id: FilesSize.php 20455 2010-01-20 22:54:18Z thomas $
Classes
Zend_Validate_File_FilesSize

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Validate_File_FilesSize

Extends from
Zend_Validate_File_Size
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
Constants
TOO_BIG
TOO_SMALL
NOT_READABLE
Properties
$_messageTemplates
$_files
Methods
__construct
isValid

Description

Validator for the size of all files which will be validated in sum

Constants

TOO_BIG

 TOO_BIG = 'fileFilesSizeTooBig'

Details

value
fileFilesSizeTooBig
const
string Error constants

TOO_SMALL

 TOO_SMALL = 'fileFilesSizeTooSmall'

Details

value
fileFilesSizeTooSmall

NOT_READABLE

 NOT_READABLE = 'fileFilesSizeNotReadable'

Details

value
fileFilesSizeNotReadable

Properties

$_files

array $_files = ''

Internal file array

Details

$_files
array
visibility
protected
default
final
false
static
false

$_messageTemplates

array $_messageTemplates = 'array'

Details

$_messageTemplates
array
Error message templates
visibility
protected
default
array
final
false
static
false

Methods

__construct

__construct( integer|array|Zend_Config $options ) : void

Sets validator options

Min limits the used diskspace for all files, when used with max=null it is the maximum filesize It also accepts an array with the keys 'min' and 'max'

Arguments
$options
integerarrayZend_Config
Options for this validator
Details
visibility
public
final
false
static
false

isValid

isValid( string|array $value, array $file = null ) : boolean

Defined by Zend_Validate_Interface

Returns true if and only if the disk usage of all files is at least min and not bigger than max (when max is not null).

Arguments
$value
stringarray
Real file to check for size
$file
array
File data from Zend_File_Transfer
Output
boolean
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.