|
|
File: c:/www/apache/doc2//form/form_element_fileupload.inc
PHPLib Form Rewrite 2001/03/01 - 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.5 2000/12/12 01:37:37 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 |
|
|
Private Method Summary |
void |
get([ string $value ])Returns the HTML code of the element.Warning: documentation is missing. |
|
|
|
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 $value ] )
|
|
Returns the HTML code of the element.
Warning: documentation is missing.
|
Parameter |
|
string |
$value |
= >>""<< |
|
The value is only used with radio buttons.
If the given value is equal to the value of the
element when it was defined, the radio gets selected. |
|
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 |