Back to HtmlDocument class

Method __construct

public
__construct
(mixed $options = array())
Class constructor
Parameters
  • array $options Associative array of options
Since
  • 1.7.0
Class: HtmlDocument
Project: Joomla

Method __construct - Source code

/**
 * Class constructor
 *
 * @param   array  $options  Associative array of options
 *
 * @since   1.7.0
 */
public function __construct($options = array())
{
    parent::__construct($options);
    // Set document type
    $this->_type = 'html';
    // Set default mime type and document metadata (metadata syncs with mime type by default)
    $this->setMimeEncoding('text/html');
}