|
|
| |
File: c:/www/apache/doc2//form/form_element_select.inc
PHPLib Form Rewrite 11.02.2001 - Form
form_element_select
form_commonobject | +-- form_element | +-- form_element_selectobject | +-- form_element_select
Generates select boxes, [select].
|
Generates select boxes, [select].
| Authors | Ulf Wendel <uw@netuse.de> |
| Version | $Id: form_element_select.inc,v 1.8 2001/01/06 01:03:00 uw Exp $ |
|
| |
|
|
|
Methods inherited from form_element |
| form_element, setup, checkconfiguration, getvalue, gettype, isbutton, getvalidator, setvalidator, freeze, unfreeze, thawout, getfrozen, show, validatelength, validateregex, dovalidation, react, setvalue, getjsonactivation, getcommonhtmlattributes, getfrozenhiddenelement, getfrozentable, getjs, getextrajs, getname, ishidden |
|
|
|
Private Method Summary |
| void |
get([ string $subelement ])Returns the HTML code of the element.Warning: documentation is missing. |
| void |
validate()Returns the result of the (serverside) validation.Warning: documentation is missing. |
| void |
getJSvalue()JavaScript function used to get the value of the element.Warning: documentation is missing. |
| void |
form_select()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 |
| boolean |
$multipleIs select multiple allowed? |
| array |
$optional_fieldsList of optional fields provided by a derived class. |
|
Private Method Details |
get |
|
private void get( [ string $subelement ] )
|
| |
Returns the HTML code of the element.
Warning: documentation is missing.
|
| Parameter |
|
| string |
$subelement |
= >>""<< |
|
Some complex form elements consists of several
HTML form elements. Date e.g. uses several select boxes.
The subelement name allows you to retrive each of this
"subelements". To get the year selector of a "Ymd"
date element you would use the "Y" as a subelement name. |
|
| Returns |
void |
| See Also |
getfrozen(), show() |
|
validate |
|
private void validate( )
|
| |
Returns the result of the (serverside) validation.
Warning: documentation is missing.
|
| Returns |
void |
| See Also |
validateLength(), validateRegEx(), doValidation() |
|
getJSvalue |
|
private void getJSvalue( )
|
| |
JavaScript function used to get the value of the element.
Most elements can use document.forms[..].elements[...].value to get thevalue of an element but some need a more sophisticated function. Theseelements must override this function.The JavaScript function provided by this elements should be names "form_elmenttype",e.g. "form_select". The (JS) function gets called with two arguments:string formname, string elementname. It returns the value of the element, seeform_element_select for an example.The function returns the JavaScript code itself and a name for the codesnippet that allows the form object to avoid sending the code twice.
Warning: documentation is missing.
|
| Returns |
void |
|
form_select |
|
private void form_select( )
|
| |
Warning: documentation is missing.
|
| Returns |
void |
|
|
Private Field Details |
$multiple |
|
private boolean $multiple
>>false<<
Is select multiple allowed?
|
|
$optional_fields |
|
private array $optional_fields
>>array (
"size" => "integer",
"intro" => "mixed",
"intro_e" => "string",
"seperators" => "array",
"seperators_e" => "string",
"accesskey" => "string",
"tabindex" => "integer",
"multiple" => "boolean",
)<<
List of optional fields provided by a derived class.
|
| See Also |
$shared_optional_fields, $required_fields |
|
|
|
|
|
| PHPDoc 1.0beta |