API15

JDocumentHTML/setHeadData: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Set the html document head data <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>...
 
m removing red link to edit, no existant pages
Line 3: Line 3:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JDocumentHTML/setHeadData|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>


{{Description:JDocumentHTML/setHeadData}}
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 45: Line 45:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JDocumentHTML/setHeadData|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>
{{SeeAlso:JDocumentHTML/setHeadData}}
<! removed transcluded page call, red link never existed >


===Examples===
===Examples===
Line 60: Line 60:
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API15]]

Revision as of 14:06, 12 May 2013

Description

Set the html document head data

[<! removed edit link to red link >]

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

Syntax

setHeadData($data)
Parameter Name Default Value Description
$data $data The document head data in array form

Defined in

libraries/joomla/document/html/html.php

Importing

jimport( 'joomla.document.html.html' );

Source Body

function setHeadData($data)
{
        $this->title            = (isset($data['title'])) ? $data['title'] : $this->title;
        $this->description      = (isset($data['description'])) ? $data['description'] : $this->description;
        $this->link                     = (isset($data['link'])) ? $data['link'] : $this->link;
        $this->_metaTags        = (isset($data['metaTags'])) ? $data['metaTags'] : $this->_metaTags;
        $this->_links           = (isset($data['links'])) ? $data['links'] : $this->_links;
        $this->_styleSheets     = (isset($data['styleSheets'])) ? $data['styleSheets'] : $this->_styleSheets;
        $this->_style           = (isset($data['style'])) ? $data['style'] : $this->_style;
        $this->_scripts         = (isset($data['scripts'])) ? $data['scripts'] : $this->_scripts;
        $this->_script          = (isset($data['script'])) ? $data['script'] : $this->_script;
        $this->_custom          = (isset($data['custom'])) ? $data['custom'] : $this->_custom;
}

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

Examples

<CodeExamplesForm />