[ 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: | 284 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Class: Zend_Validate_File_Count - X-Ref
Validator for counting all given files__construct($options) X-Ref |
Sets validator options Min limits the file count, when used with max=null it is the maximum file count It also accepts an array with the keys 'min' and 'max' If $options is a integer, it will be used as maximum file count As Array is accepts the following keys: 'min': Minimum filecount 'max': Maximum filecount param: integer|array|Zend_Config $options Options for the adapter return: void |
getMin() X-Ref |
Returns the minimum file count return: integer |
setMin($min) X-Ref |
Sets the minimum file count param: integer|array $min The minimum file count return: Zend_Validate_File_Count Provides a fluent interface |
getMax() X-Ref |
Returns the maximum file count return: integer |
setMax($max) X-Ref |
Sets the maximum file count param: integer|array $max The maximum file count return: Zend_Validate_StringLength Provides a fluent interface |
addFile($file) X-Ref |
Adds a file for validation param: string|array $file |
isValid($value, $file = null) X-Ref |
Defined by Zend_Validate_Interface Returns true if and only if the file count of all checked files is at least min and not bigger than max (when max is not null). Attention: When checking with set min you must give all files with the first call, otherwise you will get an false. param: string|array $value Filenames to check for count 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 |