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

form_element_checkbox

form_commonobject
   |
  +-- form_element
     |
    +-- form_element_checkobject
       |
      +-- form_element_checkbox

Generates Checkboxes, [input type="checkbox" value=""].

 

public class form_element_checkbox extends form_element_checkobject

Generates Checkboxes, [input type="checkbox" value=""].

AuthorsUlf Wendel <ulf.wendel@phpdoc.de>
Version$Id: form_element_checkbox.inc,v 1.5 2000/12/12 01:37:35 uw Exp $

 

Methods inherited from form_element_checkobject

getjsonactivation

Methods inherited from form_element

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

Methods inherited from form_commonobject

introspection

Private Method Summary

bool

isChecked()

Is this checkbox checked?
void

get([ string $value ])

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

getfrozen([ string $value ])

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

getJSValue()

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

form_checkbox()

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

isChecked

private bool isChecked( )

  Is this checkbox checked?

Returns bool $checked


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

getfrozen

private void getfrozen( [ string $value ] )

  Returns thr HTML code of the frozen 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 get(), 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_checkbox

private void form_checkbox( )

 

Warning: documentation is missing.

Returns void



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta