JDocumentDocument class, provides an easy interface to parse and display a document
Located in /document/document.php (line 28)
patTemplate | --JTemplate | --JDocument
| Class | Description |
|---|---|
JDocumentHTML
|
DocumentHTML class, provides an easy interface to parse and display an html document |
void
addStyleSheet
(string $url, [string $type = 'text/css'], [string $media = null], [mixed $attribs = array()])
string
$_charset
= 'utf-8' (line 52)
Contains the character encoding string
string
$_language
= 'en' (line 60)
Contains the page language setting
string
$_lineEnd
= "\12" (line 44)
Contains the line end string
string
$_mime
= '' (line 68)
Document mime type
string
$_namespace
= '' (line 76)
Document namespace
string
$_profile
= '' (line 84)
Document profile
array
$_renderers
= array() (line 132)
Array of renderers
array
$_script
= array() (line 100)
Array of scripts placed in the header
array
$_scripts
= array() (line 92)
Array of linked scripts
array
$_style
= array() (line 116)
Array of included style declarations
array
$_styleSheets
= array() (line 108)
Array of linked style sheets
string
$_tab
= "\11" (line 36)
Tab string
string
$_title
= '' (line 124)
Page title
Class constructor
Adds a linked script to the page
Adds a script to the page
Adds a stylesheet declaration to the page
Adds a linked stylesheet to the page
Outputs the template to the browser.
Execute a renderer
Return the document head
Returns a reference to the global JDocument object, only creating it if it doesn't already exist.
This method must be invoked as:
$document = &JDocument::getInstance();
Parse a file and create an internal patTemplate object
Sets the document charset
Sets the global document language declaration. Default is English.
Sets the line end style to Windows, Mac, Unix or a custom string.
Sets the document MIME encoding that is sent to the browser.
This usually will be text/html because most browsers cannot yet accept the proper mime settings for XHTML: application/xhtml+xml and to a lesser extent application/xml and text/xml. See the W3C note (http://www.w3.org/TR/xhtml-media-types/) for more details.
Sets the string used to indent HTML
Adds a renderer to be called
Load a template file
Inherited From JTemplate
JTemplate::JTemplate()
JTemplate::__construct()
JTemplate::display()
JTemplate::fetch()
JTemplate::getInstance()
JTemplate::parse()
JTemplate::setTemplateCachePrefix()
JTemplate::__destruct()
Documentation generated on Sat, 4 Feb 2006 14:23:16 +0100 by phpDocumentor 1.3.0RC4