Detailed Description
Definition at line 35 of file Size.php.
Constructor & Destructor Documentation
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
- Parameters:
-
| integer | array | $options | Options for the adapter |
Reimplemented in Zend_Validate_File_FilesSize.
Definition at line 103 of file Size.php.
Member Function Documentation
Returns the unformatted size
- Parameters:
-
- Returns:
- integer
Definition at line 343 of file Size.php.
Retrieve current detected file size
- Returns:
- int
Definition at line 247 of file Size.php.
| _throw |
( |
$ |
file, |
|
|
$ |
errorType |
|
) |
| [protected] |
Throws an error of the given type
- Parameters:
-
| string | $file | |
| string | $errorType | |
- Returns:
- false
Definition at line 395 of file Size.php.
Returns the formatted size
- Parameters:
-
- Returns:
- string
Definition at line 327 of file Size.php.
Returns the maximum filesize
- Parameters:
-
| bool | $raw | Whether or not to force return of the raw value (defaults off) |
- Returns:
- integer|string
Definition at line 206 of file Size.php.
Returns the minimum filesize
- Parameters:
-
| bool | $raw | Whether or not to force return of the raw value (defaults off) |
- Returns:
- integer|string
Definition at line 164 of file Size.php.
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).
- Parameters:
-
| string | $value | Real file to check for size |
| array | $file | File data from Zend_File_Transfer |
- Returns:
- boolean
Reimplemented in Zend_Validate_File_FilesSize.
Definition at line 274 of file Size.php.
Sets the maximum filesize
- Parameters:
-
| integer | $max | The maximum filesize |
- Exceptions:
-
- Returns:
- Zend_Validate_StringLength Provides a fluent interface
Definition at line 223 of file Size.php.
Sets the minimum filesize
- Parameters:
-
| integer | $min | The minimum filesize |
- Exceptions:
-
- Returns:
- Zend_Validate_File_Size Provides a fluent interface
Definition at line 181 of file Size.php.
Returns the minimum filesize
- Parameters:
-
| boolean | $byteString | Use bytestring ? |
- Returns:
- integer
Definition at line 142 of file Size.php.
Will bytestring be used?
- Returns:
- boolean
Definition at line 153 of file Size.php.
Field Documentation
$_messageTemplates [protected] |
Initial value: array(
self::TOO_BIG => "Maximum allowed size for file '%value%' is '%max%' but '%size%' detected",
self::TOO_SMALL => "Minimum expected size for file '%value%' is '%min%' but '%size%' detected",
self::NOT_FOUND => "File '%value%' could not be found",
)
Reimplemented from Zend_Validate_Abstract.
Reimplemented in Zend_Validate_File_FilesSize.
Definition at line 48 of file Size.php.
$_messageVariables [protected] |
$_useByteString = true [protected] |
The documentation for this class was generated from the following file:
- C:/xampp/htdocs/moodle/lib/zend/Zend/Validate/File/Size.php