Class rcube_html_page

Description

Class for HTML page creation

Located in /rcube_html_page.php (line 27)


	
			
Direct descendents
Class Description
 class rcube_template Class to create HTML page output using a skin template
Variable Summary
 mixed $base_path
 mixed $body
 mixed $charset
 mixed $css_files
 mixed $footer
 mixed $header
 mixed $scripts
 mixed $script_tag
 mixed $title
Method Summary
 rcube_html_page __construct ()
 void add_footer (string $str)
 void add_header (string $str)
 void add_script (string $script, [string $position = 'head'])
 string get_charset ()
 void include_css (string $file)
 void include_script (string $file, [string $position = 'head'])
 void reset ()
 void set_charset (string $charset)
 void set_title (string $t)
 void write ([string $templ = ''], [string $base_path = ''])
Variables
mixed $base_path = '' (line 44)
  • access: protected
mixed $body = '' (line 43)
  • access: protected
mixed $charset = RCMAIL_CHARSET (line 33)
  • access: protected
mixed $css_files = array() (line 31)
  • access: protected
mixed $default_template = "<html>\n<head><title></title></head>\n<body></body>\n</html>" (line 38)
  • access: protected
mixed $footer = '' (line 42)
  • access: protected
mixed $header = '' (line 41)
  • access: protected
mixed $link_css_file = "<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\" />\n" (line 37)
  • access: protected
mixed $scripts = array() (line 32)
  • access: protected
mixed $scripts_path = '' (line 29)
  • access: protected
mixed $script_files = array() (line 30)
  • access: protected
mixed $script_tag = "<script type=\"text/javascript\">\n/* <![CDATA[ */\n%s\n/* ]]> */\n</script>\n" (line 36)
  • access: protected
mixed $script_tag_file = "<script type=\"text/javascript\" src=\"%s\"></script>\n" (line 35)
  • access: protected
mixed $title = '' (line 40)
  • access: protected
Methods
Constructor __construct (line 48)

Constructor

  • access: public
rcube_html_page __construct ()

Redefined in descendants as:
add_footer (line 116)

Add HTML code to the page footer To be added right befor </body>

  • access: public
void add_footer (string $str)
  • string $str: HTML code
add_header (line 105)

Add HTML code to the page header

  • access: public
void add_header (string $str)
  • string $str: HTML code
add_script (line 81)

Add inline javascript code

  • access: public
void add_script (string $script, [string $position = 'head'])
  • string $script: JS code snippet
  • string $position: Target position [head|head_top|foot]
get_charset (line 147)

Getter for output charset

  • return: Output charset
  • access: public
string get_charset ()
include_css (line 95)

Link an external css file

  • access: public
void include_css (string $file)
  • string $file: File URL
include_script (line 56)

Link an external script file

  • access: public
void include_script (string $file, [string $position = 'head'])
  • string $file: File URL
  • string $position: Target position [head|foot]
reset (line 155)

Reset all saved properties

  • access: public
void reset ()

Redefined in descendants as:
set_charset (line 137)

Setter for output charset.

To be specified in a meta tag and sent as http-header

  • access: public
void set_charset (string $charset)
  • string $charset: Charset
set_title (line 126)

Setter for page title

  • access: public
void set_title (string $t)
  • string $t: Page title
write (line 171)

Process template and write to stdOut

  • access: public
void write ([string $templ = ''], [string $base_path = ''])
  • string $templ: HTML template
  • string $base_path: Base for absolute paths

Redefined in descendants as:

Documentation generated on Tue, 04 Oct 2011 22:55:24 +0200 by phpDocumentor 1.4.3