references:joomla.framework:document:jdocument-__constructTable of Contents
__construct
This is the constructor for the class. It sets up the line end parameter, the character set, the language and the tab delimeter for the document if these parameters are passed. The constructor also sets up the name space and adds the module directories for the Function, OutputFilter and Renderer. The $type parameter is passed to the JTemplate constructor. SyntaxJDocument __construct ( $type, $attributes )
The recognized settings for $attributes are:
ExamplesThis class is instantiated by the JApplication::getDocument function. Therefore, another instantiation should not be necessary. This function executes the following code: Example $attributes = array ( 'charset' => 'utf-8', 'lineend' => 'unix', 'tab' => ' ', 'language' => 'en-GB' ); jimport('joomla.document.document'); $instance =& JDocument::getInstance('html', $attributes); |


