Packageindex Classtrees Modulegroups Elementlist Report XML Files
 
File: c:/www/apache/doc2//form/form_element_select.inc
PHPLib Form Rewrite 2001/03/01 - Form

form_element_select

form_commonobject
   |
  +-- form_element
     |
    +-- form_element_selectobject
       |
      +-- form_element_select

Generates select boxes, [select].

 

private class form_element_select extends form_element_selectobject

Generates select boxes, [select].

AuthorsUlf Wendel <uw@netuse.de>
Version$Id: form_element_select.inc,v 1.5 2000/12/12 01:37:40 uw Exp $

 

Methods inherited from form_element_selectobject

setoptions, isselected, setvalue, validateintro, getintrooptiontags, getoptiontags, getfrozen

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

Methods inherited from form_commonobject

introspection

Private Method Summary

void

get([ string $value ])

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_selectobject

$size, $intro, $intro_e, $seperators, $seperators_e, $options, $accesskey, $tabindex, $required_fields

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

Fields inherited from form_commonobject

$cr_html, $exceptions

Private Field Summary

boolean

$multiple

Is select multiple allowed?
array

$optional_fields

List 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()

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


Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta