Class error_page

Description

The error page class Allows us to render errors as either HTML or WML.

Located in /webpage-defs.php (line 1521)

RenderableObject
   |
   --page_section
      |
      --error_page
Variable Summary
 mixed $heading
 mixed $msg
Method Summary
 error_page error_page (string $heading, [string $msg = ""])
 string html ()
 string wml ()
Variables
mixed $heading (line 1523)

Heading or subject of the error

mixed $msg (line 1525)

Actual error message in detail

Inherited Variables

Inherited from page_section

page_section::$content
page_section::$script
page_section::$scriptsrc
Methods
Constructor error_page (line 1533)

Constructor Create a new error page object.

error_page error_page (string $heading, [string $msg = ""])
  • string $heading: The error heading or subject
  • string $msg: The detailed error message
html (line 1543)

This renders the error page section as HTML. We do this simply as a heading at level 3 (h3), and the message content.

  • return: The error page section as HTML.
string html ()

Redefinition of:
page_section::html()
This renders the page section as HTML.
wml (line 1553)

This renders the error page section as WML. We do this simply as a single card with the appropriate title, and the content on the card in paragraph tags.

  • return: The error page section as WML.
string wml ()

Redefinition of:
page_section::wml()
This renders the page section as WML.

Inherited Methods

Inherited From page_section

 page_section::page_section()
 page_section::add()
 page_section::add_named_script()
 page_section::add_popup_script()
 page_section::add_script()
 page_section::add_scriptsrc()
 page_section::clear()
 page_section::get_template()
 page_section::get_trimcontent()
 page_section::html()
 page_section::replace()
 page_section::script()
 page_section::wml()

Inherited From RenderableObject

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

Documentation generated by phpDocumentor 1.3.0RC3