API17:JDocument::getInstance
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JDocument::getInstance
Description
Returns the global object, only creating it if it doesn't already exist.
Description:JDocument::getInstance [Edit Descripton]
public static function getInstance ( $type= 'html' $attributes=array )
| Parameter | Type | Default | Description |
|---|---|---|---|
| $type | type | 'html' | The document type to instantiate |
| $attributes | array() |
- Returns object The document object.
- Defined on line 228 of libraries/joomla/document/document.php
- Referenced by
See also
-
JDocument::getInstance source code on BitBucket
-
Class JDocument
-
Subpackage Document
- Other versions of JDocument::getInstance
SeeAlso:JDocument::getInstance [Edit See Also]
User contributed notes
<CodeExamplesForm />
