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 preparing for archive only
 
(One intermediate revision by the same user not shown)
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}}
 
 


===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>
 
</span>
{{SeeAlso:JSimpleXMLElement/setData}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=setData
  category=setData
  category=JSimpleXMLElement
  category=JSimpleXMLElement
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 02:06, 25 March 2017

Description

Set the data of the element



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;
}



Examples

Code Examples