\JDocumentXml
DocumentXML class, provides an easy interface to parse and display XML output
Synopsis
class JDocumentXml
extends JDocument
{
- // members
- protected $name;
- // Inherited members from JDocument
- public $title;
- public $description;
- public $link;
- public $base;
- public $language;
- public $direction;
- public $_generator;
- public $_mdate;
- public $_tab;
- public $_lineEnd;
- public $_charset;
- public $_mime;
- public $_namespace;
- public $_profile;
- public $_scripts;
- public $_script;
- public $_styleSheets;
- public $_style;
- public $_metaTags;
- public $_engine;
- public $_type;
- public $_buffer;
- protected $instances;
- protected $mediaVersion;
- // methods
- public void __construct()
- public The render()
- public string getName()
- public JDocumentXml setName()
- // Inherited methods from JDocument
- public void __construct()
- public static getInstance()
- public JDocument setType()
- public string getType()
- public The getBuffer()
- public JDocument setBuffer()
- public string getMetaData()
- public JDocument setMetaData()
- public JDocument addScript()
- public JDocument addScriptVersion()
- public JDocument addScriptDeclaration()
- public JDocument addStyleSheet()
- public JDocument addStyleSheetVersion()
- public JDocument addStyleDeclaration()
- public JDocument setCharset()
- public string getCharset()
- public JDocument setLanguage()
- public string getLanguage()
- public JDocument setDirection()
- public string getDirection()
- public JDocument setTitle()
- public string getTitle()
- public JDocument setMediaVersion()
- public string getMediaVersion()
- public JDocument setBase()
- public string getBase()
- public JDocument setDescription()
- public string getDescription()
- public JDocument setLink()
- public string getLink()
- public JDocument setGenerator()
- public string getGenerator()
- public JDocument setModifiedDate()
- public string getModifiedDate()
- public JDocument setMimeEncoding()
- public string getMimeEncoding()
- public JDocument setLineEnd()
- public string _getLineEnd()
- public JDocument setTab()
- public string _getTab()
- public JDocumentRenderer loadRenderer()
- public JDocument parse()
- public The render()
Hierarchy
Extends
Members
protected
- $instances
—
array
JDocument instances container. - $mediaVersion
—
string
Media version added to assets - $name
—
string
Document name
public
- $_buffer
—
mixed
Array of buffered output - $_charset
—
string
Contains the character encoding string - $_engine
—
The rendering engine - $_generator
—
string
Document generator - $_lineEnd
—
string
Contains the line end string - $_mdate
—
string
Document modified date - $_metaTags
—
array
Array of meta tags - $_mime
—
string
Document mime type - $_namespace
—
string
Document namespace - $_profile
—
string
Document profile - $_script
—
array
Array of scripts placed in the header - $_scripts
—
array
Array of linked scripts - $_style
—
array
Array of included style declarations - $_styleSheets
—
array
Array of linked style sheets - $_tab
—
string
Tab string - $_type
—
string
The document type - $base
—
string
Document base URL - $description
—
string
Document description - $direction
—
string
Contains the document direction setting - $language
—
string
Contains the document language setting - $link
—
string
Document full URL - $title
—
string
Document title
Methods
public
- __construct() — Class constructor
- getName() — Returns the document name
- render() — Render the document.
- setName() — Sets the document name
Inherited from JDocument
public
- _getLineEnd() — Returns the lineEnd
- _getTab() — Returns a string containing the unit for indenting HTML
- addScript() — Adds a linked script to the page
- addScriptDeclaration() — Adds a script to the page
- addScriptVersion() — Adds a linked script to the page with a version to allow to flush it. Ex: myscript.js54771616b5bceae9df03c6173babf11d If not specified Joomla! automatically handles versioning
- addStyleDeclaration() — Adds a stylesheet declaration to the page
- addStyleSheet() — Adds a linked stylesheet to the page
- addStyleSheetVersion() — Adds a linked stylesheet version to the page. Ex: template.css?54771616b5bceae9df03c6173babf11d If not specified Joomla! automatically handles versioning
- getBase() — Return the base URI of the document.
- getBuffer() — Get the contents of the document buffer
- getCharset() — Returns the document charset encoding.
- getDescription() — Return the title of the page.
- getDirection() — Returns the document direction declaration.
- getGenerator() — Returns the document generator
- getInstance() — Returns the global JDocument object, only creating it if it doesn't already exist.
- getLanguage() — Returns the document language.
- getLink() — Returns the document base url
- getMediaVersion() — Return the media version
- getMetaData() — Gets a meta tag.
- getMimeEncoding() — Return the document MIME encoding that is sent to the browser.
- getModifiedDate() — Returns the document modified date
- getTitle() — Return the title of the document.
- getType() — Returns the document type
- loadRenderer() — Load a renderer
- parse() — Parses the document and prepares the buffers
- render() — Outputs the document
- setBase() — Sets the base URI of the document
- setBuffer() — Set the contents of the document buffer
- setCharset() — Sets the document charset
- setDescription() — Sets the description of the document
- setDirection() — Sets the global document direction declaration. Default is left-to-right (ltr).
- setGenerator() — Sets the document generator
- setLanguage() — Sets the global document language declaration. Default is English (en-gb).
- setLineEnd() — Sets the line end style to Windows, Mac, Unix or a custom string.
- setLink() — Sets the document link
- setMediaVersion() — Set the assets version
- setMetaData() — Sets or alters a meta tag.
- setMimeEncoding() — Sets the document MIME encoding that is sent to the browser.
- setModifiedDate() — Sets the document modified date
- setTab() — Sets the string used to indent HTML
- setTitle() — Sets the title of the document
- setType() — Set the document type