API16

JSimpleXMLElement/setData: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 4: Line 4:




{{subst:Description:JSimpleXMLElement/setData}}
 


===Syntax===
===Syntax===
Line 36: Line 36:




{{subst: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