Class WMLtemplate

Description

WMLtemplate class Extends container class to make a template. These are useful when you have a bunch of cards which you want to all have a common set of options.

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

RenderableObject
   |
   --WMLelement
      |
      --WMLcontainer
         |
         --WMLtemplate
Method Summary
 WMLtemplate WMLtemplate ([string $body = ""])
 string html ()
 string wml ()
Variables
Methods
Constructor WMLtemplate (line 597)

Constructor Create a new template object.

WMLtemplate WMLtemplate ([string $body = ""])
  • string $body: Initial body content
html (line 624)

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

  • 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 607)

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

Returns a string which is the WML for the template.

  • 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 WMLcontainer

 WMLcontainer::WMLcontainer()
 WMLcontainer::insert_go()
 WMLcontainer::insert_prev()
 WMLcontainer::insert_refresh()
 WMLcontainer::set_ontimer()

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