Support Joomla!

references:joomla.framework:document:jdocumenthtml-__construct

Table of Contents

__construct

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Document Class JDocumentHTML Method __construct Reference __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.

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’):

Example

$adapter = 'JDocument'.$type;
$instances[$signature] = new $adapter($type, $attributes);
 
references/joomla.framework/document/jdocumenthtml-__construct.txt (388 views) · Last modified: 2007/08/15 14:53