JDocument::getInstance
Returns the global JDocument object, only creating it if it doesn't already exist.
Signature
public function getInstance([string
$type = 'html',
array
$attributes] )
Parameters
-
$type
- The document type to instantiate
-
$attributes
- Array of attributes
Returns
- The document object.