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

form_element_radio

form_commonobject
   |
  +-- form_element
     |
    +-- form_element_checkobject
       |
      +-- form_element_radio

Generation of radio elements, [input type="radio" value=""].

 

public class form_element_radio extends form_element_checkobject

Generation of radio elements, [input type="radio" value=""].

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

 

Methods inherited from form_element_checkobject

getjsonactivation

Methods inherited from form_element

form_element, setup, checkconfiguration, gettype, isbutton, getvalidator, setvalidator, freeze, unfreeze, thawout, getfrozen, show, validate, validatelength, validateregex, dovalidation, react, getjsonactivation, getcommonhtmlattributes, getfrozenhiddenelement, getfrozentable, getjs, getextrajs, getname, ishidden

Methods inherited from form_commonobject

introspection

Private Method Summary

mixed

getValue()

Returns the value of the radio element if the radio is checked otherwise NULLWarning: documentation is missing.
void

setValue(mixed $value)

Sets the value of the form element.Warning: documentation is missing.
void

get([ string $value ])

Returns the HTML code of the element.Warning: documentation is missing.
void

getJSValue()

JavaScript function used to get the value of the element.Warning: documentation is missing.
void

form_radio()

Warning: documentation is missing.

Fields inherited from form_element_checkobject

$checked, $accesskey, $tabindex, $optional_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, $optional_fields, $method, $val_events, $js_mode, $form_name, $validator, $js_validator

Fields inherited from form_commonobject

$cr_html, $exceptions

Private Method Details

getValue

private mixed getValue( )

  Returns the value of the radio element if the radio is checked otherwise NULL

Warning: documentation is missing.

Returns mixed $value


setValue

private void setValue( mixed $value )

  Sets the value of the form element.

Warning: documentation is missing.

Parameter
mixed $value
Returns void


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

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_radio

private void form_radio( )

 

Warning: documentation is missing.

Returns void



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta