Actions

API15

JDocument/ construct

From Joomla! Documentation

< API15:JDocument
Revision as of 16:17, 22 March 2010 by Doxiki (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

[Edit Descripton]

Description:JDocument/ construct

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']);
        }
}

[Edit See Also] SeeAlso:JDocument/ construct

Examples

<CodeExamplesForm />