Class WMLcard

Description

WMLcard class Manage WML cards.

These are effectively the "webpages" of the WAP world.

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

RenderableObject
   |
   --WMLelement
      |
      --WMLcontainer
         |
         --WMLcard
Variable Summary
 mixed $card_id
 mixed $newcontext
 mixed $ordered
 mixed $title
Method Summary
 WMLcard WMLcard ([string $card_id = "main"], [string $title = ""], [string $newcontext = false], [string $ordered = false])
 string html ()
 string wml ()
Variables
mixed $card_id = "" (line 638)

Unique card identifier string

mixed $newcontext = false (line 642)

True if card has its own context

mixed $ordered = false (line 644)

True if the card is "ordered"

mixed $title = "" (line 640)

Card title/banner

Inherited Variables

Inherited from WMLcontainer

WMLcontainer::$ontimerhref
WMLcontainer::$timerval

Inherited from WMLelement

WMLelement::$body
Methods
Constructor WMLcard (line 654)

Constructor Create a new WML card.

WMLcard WMLcard ([string $card_id = "main"], [string $title = ""], [string $newcontext = false], [string $ordered = false])
  • string $card_id: The unique card identifier string
  • string $title: The card title string
  • string $newcontext: True if card has a new context when shown
  • string $ordered: True if card is ordered
html (line 700)

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

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

Returns a string which is the WML for the card. This is basically just a case of rendering the various properties like card_id etc. as they were defined for the card.

  • 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