JDocument
Document class, provides an easy interface to parse and display a document
Located in /joomla/document/document.php (line 27)
JObject (Subpackage Base) JDocument (Subpackage Document)
Class | Description |
---|---|
JDocumentHTML | DocumentHTML class, provides an easy interface to parse and display an html document |
JDocumentRAW | DocumentRAW class, provides an easy interface to parse and display raw output |
JDocumentError | DocumentError class, provides an easy interface to parse and display an error page |
JDocumentFeed | DocumentFeed class, provides an easy interface to parse and display any feed document |
JDocumentPDF | DocumentPDF class, provides an easy interface to parse and display a pdf document |
Document description
Contains the document direction setting
Contains the document language setting
Document base URL
Document title
Document generator
Class constructor
- array $options: Associative array of options
- JObject::__construct()
- Class constructor, overridden in descendant classes.
- JDocumentHTML::__construct() : Class constructor
- JDocumentRAW::__construct() : Class constructore
- JDocumentError::__construct() : Class constructor
- JDocumentFeed::__construct() : Class constructor
- JDocumentPDF::__construct() : Class constructore
Adds a linked script to the page
- string $url: URL to the linked script
- string $type: Type of script. Defaults to 'text/javascript'
Adds a script to the page
- string $content: Script
- string $type: Scripting mime (defaults to 'text/javascript')
Adds a stylesheet declaration to the page
- string $content: Style declarations
- string $type: Type of stylesheet (defaults to 'text/css')
Adds a linked stylesheet to the page
- string $url: URL to the linked style sheet
- string $type: Mime encoding type
- string $media: Media type that this stylesheet applies to
- $attribs
Get the contents of the document buffer
- JDocumentHTML::getBuffer() : Get the contents of a document include
Get the document head data
- JDocumentHTML::getHeadData() : Get the document head data
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();
- type $type: The document type to instantiate
- $attributes
Gets a meta tag.
- string $name: Value of name or http-equiv tag
- bool $http_equiv: META type "http-equiv" defaults to null
Load a renderer
- string $type: The renderer type
Outputs the document
- boolean $cache: If true, cache the output
- boolean $compress: If true, compress the output
- array $params: Associative array of attributes
- JDocumentHTML::render() : Outputs the template to the browser.
- JDocumentRAW::render() : Render the document.
- JDocumentError::render() : Render the document
- JDocumentFeed::render() : Render the document
- JDocumentPDF::render() : Render the document.
Set the contents of the document buffer
- string $content: The content to be set in the buffer
- JDocumentHTML::setBuffer() : Set the contents a document include
Sets the document charset
- string $type: Charset encoding string
Sets the description of the document
- string $title
- $description
Sets the global document direction declaration. Default is left-to-right (ltr).
- string $lang
- $dir
Sets the document generator
- string $generator
Set the document head data
- array $data: The document head data in array form
- JDocumentHTML::setHeadData() : Set the document head data
Sets the global document language declaration. Default is English (en).
- string $lang
Sets the line end style to Windows, Mac, Unix or a custom string.
- string $style: "win", "mac", "unix" or custom string.
Sets or alters a meta tag.
- string $name: Value of name or http-equiv tag
- string $content: Value of the content tag
- bool $http_equiv: META type "http-equiv" defaults to null
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.
- string $type
Sets the document modified date
- string $date
Sets the string used to indent HTML
- string $string: String used to indent ("\11", "\t", ' ', etc.).
Inherited Methods
Inherited From JObject
JObject::JObject()
JObject::__construct()
JObject::get()
JObject::getPublicProperties()
JObject::set()
JObject::toString()
Documentation generated on Mon, 05 Mar 2007 20:56:47 +0000 by phpDocumentor 1.3.1