Class body

Description

The body class The class is a special kind of page section. It contains all of the main page content.

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

RenderableObject
   |
   --page_section
      |
      --body
Direct descendents
Class Description
 class deck The deck class The class is a special kind of body section. It contains all of the main page content for a WAP phone (wml).
Variable Summary
 mixed $onload
 mixed $parms
Method Summary
 body body ([string $templatefile = ""], [string $onload = ""], [string $parms = ""])
 string html ()
 void set_onload (string $onload)
 void set_parms (string $parms)
 string wml ()
Variables
mixed $onload = "" (line 1257)

The script to execute when the page has loaded

mixed $parms = "" (line 1259)

Miscellaneous content for the body tag

Inherited Variables

Inherited from page_section

page_section::$content
page_section::$script
page_section::$scriptsrc
Methods
Constructor body (line 1268)

Constructor Create a new body object.

body body ([string $templatefile = ""], [string $onload = ""], [string $parms = ""])
  • string $templatefile: Template file to load content from
  • string $onload: Script to execute when page loads
  • string $parms: Misc other content for the body tag
html (line 1370)

This renders the body as HTML.

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

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

Redefined in descendants as:
set_onload (line 1279)

Define the script to execute after page has loaded

void set_onload (string $onload)
  • string $onload: Script to execute when page loads
set_parms (line 1289)

Define other miscellaneous content to be put into the body tag.

This method can be called multiple times. Each time the content is added (appended) to.

void set_parms (string $parms)
  • string $parms: Misc other content for the body tag
wml (line 1386)

This renders the body as WML.

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

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

Redefined in descendants as:

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