Class WMLanchor

Description

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.

This object contains a GO element to do the work of jumping to the given URL.

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

RenderableObject
   |
   --WMLelement
      |
      --WMLanchor
Variable Summary
 mixed $go
 mixed $text
 mixed $title
Method Summary
 WMLanchor WMLanchor ([string $href = ""], [string $text = "Go"], [string $title = ""])
 string html ()
 void insert (string $wml)
 void set_variable (string $varname, string $value)
 string wml ()
Variables
mixed $go (line 455)

Go object associated with this link

mixed $text (line 451)

Text to display for the anchor/link

mixed $title (line 453)

Title of the anchor

Inherited Variables

Inherited from WMLelement

WMLelement::$body
Methods
Constructor WMLanchor (line 464)

Constructor

Create a new anchor (clickable link)

WMLanchor WMLanchor ([string $href = ""], [string $text = "Go"], [string $title = ""])
  • string $href: URL to go to when clicked by user
  • string $text: Text to display to the user
  • string $title: Title for the anchor
html (line 512)

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.
insert (line 475)

Insert content into the anchor

void insert (string $wml)
  • string $wml: Content to append to the anchor

Redefinition of:
WMLelement::insert()
Insert content Append more WML content to the body. This just concatenates the given string onto the existing content.
set_variable (line 487)

Define a variable This variable will be sent to the server when the user clicks the link.

void set_variable (string $varname, string $value)
  • string $varname: Name of the variable
  • string $value: Value of the variable
wml (line 497)

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

  • 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