JSimpleXMLElement/setData: Difference between revisions
From Joomla! Documentation
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 | ||
{{Description:JSimpleXMLElement/setData}} | |||
{{subst:Description:JSimpleXMLElement/setData}} | |||
===Syntax=== | ===Syntax=== | ||
| Line 37: | Line 35: | ||
</source> | </source> | ||
{{subst:SeeAlso:JSimpleXMLElement/setData}} | |||
{{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 />