API15

JSimpleXMLElement/setData: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m preparing for archive only
 
Line 43: Line 43:


===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=*

Latest revision as of 01:09, 25 March 2017

Description

Set the data of the element

[<! removed edit link to red link >]

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

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

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

Examples

Code Examples