API16

JSimpleXMLElement/setData: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Set the data of the element <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</n...
 
m clean up
Line 2: Line 2:
Set the data of the element
Set the data of the element


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JSimpleXMLElement/setData|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JSimpleXMLElement/setData}}
 
{{subst:Description:JSimpleXMLElement/setData}}


===Syntax===
===Syntax===
Line 37: Line 35:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JSimpleXMLElement/setData|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JSimpleXMLElement/setData}}
</span>
{{SeeAlso:JSimpleXMLElement/setData}}


===Examples===
===Examples===

Revision as of 14:26, 24 March 2017

Description

Set the data of the element


{{subst:Description:JSimpleXMLElement/setData}}

Syntax

setData($data)
Parameter Name Default Value Description
$data $data

Returns

string

Defined in

libraries/joomla/utilities/simplexml.php

Importing

jimport( 'joomla.utilities.simplexml' );

Source Body

function setData($data) {
        $this->_data = $data;
}


{{subst:SeeAlso:JSimpleXMLElement/setData}}

Examples

<CodeExamplesForm />