Class WMLfieldset

Description

WMLfieldset class Manage a set of fields.

Located in /wml-defs.php (line 103)

RenderableObject
   |
   --WMLelement
      |
      --WMLfieldset
Variable Summary
 mixed $fields
 mixed $title
Method Summary
 WMLfieldset WMLfieldset ([string $title = ""])
 void add_field (object $field)
 string html ()
 string wml ()
Variables
mixed $fields (line 107)

Array of fields

mixed $fields_total = 0 (line 109)

Total number of fields

mixed $title = "" (line 105)

Title of the set of fields

Inherited Variables

Inherited from WMLelement

WMLelement::$body
Methods
Constructor WMLfieldset (line 116)

Constructor Create a new fieldset object.

WMLfieldset WMLfieldset ([string $title = ""])
  • string $title: Title of this set of fields
add_field (line 125)

Add field Add a field object to the fields in this fieldset.

void add_field (object $field)
  • object $field: Field to add to the fieldset
html (line 159)

Return HTML content Use render() to render this element in your page.

NOTE; For html this is meaningless. Just use the BACK button.

  • return: The HTML for the element.
string html ()

Redefinition of:
RenderableObject::html()
Return output suitable for normal HTML-capable device. This method must be over-ridden by a method of the same name in the descendant class which renders output to web browsers.
wml (line 141)

Return WML content Use render() to render this element in your page.

Returns a string which is the WML for the fieldset. We render the fieldset tags, and we iterate over the fields to fill in the content of the fieldset. NOTE: The field which is added is a field of a standard type such as form_textfield, form_combofield etc. @see form-defs.php.

  • return: The WML for the element.
string wml ()

Redefinition of:
RenderableObject::wml()
Return output suitable for normal wap-capable device. This method must be over-ridden by a method of the same name in the descendant class which renders output to wap devices.

Inherited Methods

Inherited From WMLelement

 WMLelement::WMLelement()
 WMLelement::insert()
 WMLelement::insert_para()
 WMLelement::insert_paragraph()
 WMLelement::insert_para_scrubbed()

Inherited From RenderableObject

 RenderableObject::RenderableObject()
 RenderableObject::html()
 RenderableObject::render()
 RenderableObject::wml()
 RenderableObject::wmlup()
 RenderableObject::xml()

Documentation generated by phpDocumentor 1.3.0RC3