| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Document |
JDocumentHTML |
__construct |
__construct() |
Never | Work in Progress |
This is the class constructor. It passes the attributes to the parent class and in addition, sets the base attribute. It also sets the MIME type to ‘text/html’ and defines a renderer sequences.
JDocumentHTML __construct ( $attributes, $type )
| $attributes | array | is an associative array of attributes* base - the base URL of the document * see [[jdocument#__construct|JDocument::__construct]] for information about the other attributes. |
This class is instantiated by the JDocument class if the document type is ‘html’. The following code is used (where $type is ‘html’):
Example
$adapter = 'JDocument'.$type; $instances[$signature] = new $adapter($type, $attributes);