Class WMLelement

Description

WMLelement class Manage WML elements. This is a virtual class used for all WML elements.

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

RenderableObject
   |
   --WMLelement
Direct descendents
Class Description
 class WMLfieldset WMLfieldset class Manage a set of fields.
 class WMLdo_element WMLdo_element class Do Element Class: Extends element to make a virtual class which has descendants which are contained by a 'do' construct.
 class WMLanchor WMLanchor class Provides a standard link on a WML page. It is usually an underlined bit of text which the user can click on to go to the given URL.
 class WMLcontainer WMLcontainer class Container Class: Extends element class to make a virtual class for descendants which are container of basic elements. Examples of these would be a WMLtemplate, or a WMLcard.
Variable Summary
 mixed $body
Method Summary
 WMLelement WMLelement ([string $body = ""])
 void insert (mixed $content, string $wml)
 void insert_para (mixed $content, string $wml)
 void insert_paragraph (mixed $content, string $wml)
 void insert_para_scrubbed (mixed $content, string $wml)
Variables
mixed $body = "" (line 41)

The content of the element

Methods
Constructor WMLelement (line 48)

Constructor Create a new element object.

WMLelement WMLelement ([string $body = ""])
  • string $body: Initial element body content
insert (line 58)

Insert content Append more WML content to the body. This just concatenates the given string onto the existing content.

void insert (mixed $content, string $wml)
  • string $wml: WML string to append

Redefined in descendants as:
insert_para (line 79)

Insert paragraph small text Append content to the body inside a paragraph and with small text tags around it. Refinement of the standard insert_paragraph() method.

void insert_para (mixed $content, string $wml)
  • string $wml: WML string to append inside paragraph tags as small text
insert_paragraph (line 68)

Insert paragraph Append content to the body inside a paragraph.

void insert_paragraph (mixed $content, string $wml)
  • string $wml: WML string to append inside paragraph tags
insert_para_scrubbed (line 91)

Insert paragraph small text scrubbed Append content to the body inside a paragraph and with small text tags around it. Just like insert_para() except we also scrub the content to make sure it is clean.

void insert_para_scrubbed (mixed $content, string $wml)
  • string $wml: WML string to append inside paragraph tags as small text and scrubbed

Inherited Methods

Inherited From RenderableObject

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

Documentation generated by phpDocumentor 1.3.0RC3