Class WMLgo

Description

WMLgo class Extends the Do Element Class. Provide the Do element of type = 'accept'.

This is like the HTML submit button which delivers form content back to the server after the user has entered details.

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

RenderableObject
   |
   --WMLelement
      |
      --WMLdo_element
         |
         --WMLgo
Variable Summary
 mixed $href
 mixed $method
 mixed $postfields
Method Summary
 WMLgo WMLgo (string $name, string $label, string $href, [string $method = ""])
 string html ()
 void postfield (string $name, [string $value = ""])
 string wml ()
Variables
mixed $href = "" (line 359)

URL to GO to

mixed $method (line 361)

Method, eg. "post"

mixed $postfields (line 363)

Array of fields to post

Inherited Variables

Inherited from WMLdo_element

WMLdo_element::$label
WMLdo_element::$name
WMLdo_element::$optional
WMLdo_element::$type

Inherited from WMLelement

WMLelement::$body
Methods
Constructor WMLgo (line 373)

Constructor Create a new go DO element object.

WMLgo WMLgo (string $name, string $label, string $href, [string $method = ""])
  • string $name: Name for this GO element
  • string $label: Label for this GO element
  • string $href: URL to go to when clicked by user
  • string $method: Method, eg. "post"
html (line 419)

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

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

Redefinition of:
WMLdo_element::html()
Produce main HTML for DO element
postfield (line 386)

Define a field to post with this GO element. When fields are defined like this the method is automatically switched to being "post" for the GO element.

void postfield (string $name, [string $value = ""])
  • string $name: Name of the field to post
  • string $value: Value in the field to post
wml (line 399)

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

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

Redefinition of:
WMLdo_element::wml()
Produce main WML for DO element This is a common utility method to render the DO WML once the details (body) has been filled in by the child class of this one.

Inherited Methods

Inherited From WMLdo_element

 WMLdo_element::WMLdo_element()
 WMLdo_element::html()
 WMLdo_element::wml()

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