====== __construct ====== {#JAPI Joomla.Framework Document JDocumentHTML::__construct #} This is the class constructor. It passes the attributes to the [[jdocument#__construct|parent class]] and in addition, sets the base attribute. It also sets the MIME type to 'text/html' and defines a renderer sequences. ===== Syntax ===== 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. | ===== Examples ===== This class is instantiated by the JDocument class if the document type is 'html'. The following code is used (where $type is 'html'): $adapter = 'JDocument'.$type; $instances[$signature] = new $adapter($type, $attributes);