|
|
| |
File: c:/www/apache/doc2//form/form_element_fileupload.inc
PHPLib Form Rewrite 11.02.2001 - Form
form_element_fileupload
form_commonobject | +-- form_element | +-- form_element_buttonobject | +-- form_element_file | +-- form_element_fileupload
Generated a fileupload button plus the MAX_FILE_SIZE hidden field that PHP needs.
|
public class form_element_fileupload extends form_element_file
Generated a fileupload button plus the MAX_FILE_SIZE hidden field that PHP needs.
You can do a simple validation of the file that the user attempts toupload by checking the file name using length and regexp attributes.
| Authors | Ulf Wendel <uw@netuse.de> |
| Version | $Id: form_element_fileupload.inc,v 1.9 2001/01/10 00:22:53 uw Exp $ |
|
| |
|
|
|
Methods inherited from form_element_buttonobject |
| getfrozen |
|
Methods inherited from form_element |
| form_element, setup, checkconfiguration, getvalue, gettype, isbutton, getvalidator, setvalidator, freeze, unfreeze, thawout, getfrozen, show, validate, validatelength, validateregex, dovalidation, react, setvalue, getjsonactivation, getcommonhtmlattributes, getfrozenhiddenelement, getfrozentable, getjs, getjsvalue, getextrajs, getname, ishidden |
|
|
|
|
|
|
|
|
|
Fields inherited from form_element |
| $flag_config_ok, $elname, $name, $value, $additional_html, $frozen, $class, $id, $style, $shared_required_fields, $required_fields, $shared_optional_fields, $method, $val_events, $js_mode, $form_name, $validator, $js_validator |
|
|
|
Private Field Summary |
| integer |
$maxfilesizePHP MAX_FILE_SIZE value. |
| array |
$optional_fieldsList of optional fields provided by a derived class. |
|
Private Method Details |
get |
|
private void get( [ string $subelement ] )
|
| |
Warning: documentation is missing.
|
| Parameter |
|
| string |
$subelement |
= >>""<< |
|
: hidden, input. |
|
| Returns |
void |
| See Also |
getfrozen(), show() |
|
|
Private Field Details |
$maxfilesize |
|
private integer $maxfilesize
>>100000<<
PHP MAX_FILE_SIZE value.
Search php.net for "File Upload Support" to find out more about MAX_FILE_SIZE.
|
|
$optional_fields |
|
private array $optional_fields
>>array (
"accesskey" => "string",
"tabindex" => "integer",
"size" => "integer",
"accept" => "string",
"length_e" => "string",
"minlength" => "integer",
"maxlength" => "integer",
"valid_e" => "string",
"valid_regex" => "string",
"valid_icase" => "boolean",
"maxfilesize" => "integer"
)<<
List of optional fields provided by a derived class.
|
| See Also |
$shared_optional_fields, $required_fields |
|
|
|
|
|
| PHPDoc 1.0beta |