Inheritance diagram for UploadField:
Definition at line 8 of file upload-field.inc.php.
Public Member Functions | |
__set ($name, $value) | |
Magic setter. | |
drawInput () | |
Draw the input. | |
validate () | |
Validate the field. | |
setFromRequest () | |
Set the value of this field from the $_REQUEST (and $_FILES) array. | |
Protected Member Functions | |
returnBytes ($val) | |
Convert php.ini filesize shorthand into number of bytes. | |
Protected Attributes | |
$dir = '' | |
Path to upload into. |
|
Magic setter.
Reimplemented from AbstractField. Definition at line 17 of file upload-field.inc.php. |
|
Draw the input.
Implements Field. Definition at line 28 of file upload-field.inc.php. References returnBytes(). |
|
Convert php.ini filesize shorthand into number of bytes. Lifted from the PHP manual (lookup ini_get)
Definition at line 95 of file upload-field.inc.php. Referenced by drawInput(). |
|
Set the value of this field from the $_REQUEST (and $_FILES) array.
Definition at line 83 of file upload-field.inc.php. Referenced by validate(). |
|
Validate the field. This handles moving the file to the upload directory.
Reimplemented from AbstractField. Definition at line 42 of file upload-field.inc.php. References setFromRequest(). |
|
Path to upload into.
Definition at line 10 of file upload-field.inc.php. |