Difference between revisions of "JDocument/ construct"
From Joomla! Documentation
< API15:JDocument
m (removing red link to edit, no existant pages) |
m (preparing for archive only) |
||
Line 69: | Line 69: | ||
===Examples=== | ===Examples=== | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=__construct | category=__construct | ||
category=JDocument | category=JDocument | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* |
Latest revision as of 19:29, 24 March 2017
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]