Actions

API16

JDocument/ construct

From Joomla! Documentation

< API16:JDocument
Revision as of 22:04, 12 May 2013 by JoomlaWikiBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Class constructor

[<! removed edit link to red link >]

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

Syntax

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

Defined in

libraries/joomla/document/document.php

Importing

jimport( 'joomla.document.document' );

Source Body

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

<CodeExamplesForm />