655.1. Zend\Validator\File\FilesSize
Validator for the size of all files which will be validated in sum
655.1.1. Methods
655.1.1.1. __construct
-
__construct()
Sets validator options
Min limits the used disk space for all files, when used with max=null it is the maximum file size
It also accepts an array with the keys ‘min’ and ‘max’
Parameters: | integer|array|Traversable – Options for this validator |
Throws ZendValidatorExceptionInvalidArgumentException: |
| |
655.1.1.2. isValid
-
isValid()
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).
Parameters: |
- string|array – Real file to check for size
- array – File data from ZendFileTransferTransfer
|
Return type: | bool
|
655.1.1.3. throwError
-
throwError()
Throws an error of the given type
Parameters: |
|
Return type: | false
|
655.1.2. Constants
655.1.2.1. TOO_BIG
@const string Error constants
655.1.2.2. TOO_SMALL
655.1.2.3. NOT_READABLE