API15

JDocument/ construct

From Joomla! Documentation

< API15:JDocument

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Class constructor

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax[edit]

__construct($options=array())
Parameter Name Default Value Description
$options array() $options Associative array of options

Defined in[edit]

libraries/joomla/document/document.php

Importing[edit]

jimport( 'joomla.document.document' );

Source Body[edit]

function __construct( $options = array())
{
        parent::__construct();

        if (array_key_exists('lineend', $options)) {
                $this->setLineEnd($options['lineend']);
        }

        if (array_key_exists('charset', $options)) {
                $this->setCharset($options['charset']);
        }

        if (array_key_exists('language', $options)) {
                $this->setLanguage($options['language']);
        }

         if (array_key_exists('direction', $options)) {
                $this->setDirection($options['direction']);
        }

        if (array_key_exists('tab', $options)) {
                $this->setTab($options['tab']);
        }

        if (array_key_exists('link', $options)) {
                $this->setLink($options['link']);
        }

        if (array_key_exists('base', $options)) {
                $this->setBase($options['base']);
        }
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples[edit]

Code Examples[edit]