Class PageDescription

Description

Page description class

Class that hold XHTML page properties. This class can be used from templates to inform layouts that templates want some proprety changes. It is entirely on layout to decide if it will use properties from instance of this class or some other set of values.

  • version: 1.0

Located in /application/helpers/page.php (line 220)


	
			
Method Summary
static PageDescription instance (void 0)
null addInlineCSS (string $content, [string $condition = null])
null addInlineJS (string $content)
null addJavascript (string $src)
null addLink (string $href, [string $rel_or_rev = 'rel'], [string $rel = 'alternate'], [array $attributes = null])
null addMeta (string $name, string $content, [boolean $http_equiv = false])
mixed addRelLink (string $href, [string $rel = 'alternate'], string $attributes)
mixed addRevLink (string $href, [string $rev = 'alternate'], [array $attributes = null])
array getInlineCSS (null 0)
array getInlineJS (null 0)
array getJavascript (null 0)
array getLinks (null 0)
type getMeta (null 0)
string getTitle (null 0)
boolean isJavascriptIncluded (string $src)
null setTitle (string $value)
Methods
static method instance (line 464)

Return single PageDescription instance

  • access: public
static PageDescription instance (void 0)
  • void 0
addInlineCSS (line 395)

Add inline CSS block

  • access: public
null addInlineCSS (string $content, [string $condition = null])
  • string $content
  • string $condition
addInlineJS (line 453)

Add inline JS entry

  • access: public
null addInlineJS (string $content)
  • string $content
addJavascript (line 420)

Add external JS link

  • access: public
null addJavascript (string $src)
  • string $src: JS file URL
addLink (line 359)

Add link

  • access: public
null addLink (string $href, [string $rel_or_rev = 'rel'], [string $rel = 'alternate'], [array $attributes = null])
  • string $href
  • string $rel_or_rev
  • string $rel
  • array $attributes
addMeta (line 306)

Add page meta entry

  • access: public
null addMeta (string $name, string $content, [boolean $http_equiv = false])
  • string $name
  • string $content
  • boolean $http_equiv
addRelLink (line 333)

Add rel link

mixed addRelLink (string $href, [string $rel = 'alternate'], string $attributes)
  • string $href: Link locator
  • string $rel: Rel value
  • string $attributes
addRevLink (line 345)

Add rev link

mixed addRevLink (string $href, [string $rev = 'alternate'], [array $attributes = null])
  • string $href: Link locator
  • string $rev: Rev value
  • array $attributes
getInlineCSS (line 383)

Get inline_css

  • access: public
array getInlineCSS (null 0)
  • null 0
getInlineJS (line 442)

Get inline_js

  • access: public
array getInlineJS (null 0)
  • null 0
getJavascript (line 409)

Get javascription

  • access: public
array getJavascript (null 0)
  • null 0
getLinks (line 321)

Get links

  • access: public
array getLinks (null 0)
  • null 0
getMeta (line 293)

Get meta

  • access: public
type getMeta (null 0)
  • null 0
getTitle (line 271)

Get title

  • access: public
string getTitle (null 0)
  • null 0
isJavascriptIncluded (line 431)

Check if specific javascript file is included on page

  • access: public
boolean isJavascriptIncluded (string $src)
  • string $src
setTitle (line 282)

Set title value

  • access: public
null setTitle (string $value)
  • string $value

Documentation generated on Wed, 23 Jan 2008 01:58:58 +0000 by phpDocumentor 1.4.0