API17

JSimpleXMLElement: Difference between revisions

From Joomla! Documentation

m JoomlaWikiBot moved page JSimpleXMLElement/11.1 to API17:JSimpleXMLElement without leaving a redirect: Robot: Moved page
m preparing for archive only
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
=={{JVer|11.1}} JSimpleXMLElement==
=={{JVer|11.1}} JSimpleXMLElement==
===Description===
===Description===
{{Description:JSimpleXMLElement}}
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JSimpleXMLElement|Edit Descripton]]<nowiki>]</nowiki>
</span>
===Methods===
===Methods===
{| class="wikitable sortable"
{| class="wikitable sortable"
Line 14: Line 12:
|-
|-
|public  
|public  
|[[JSimpleXMLElement::__construct/11.1|__construct]]
|[[API17:JSimpleXMLElement::__construct|__construct]]
|Constructor, sets up all the default values.  
|Constructor, sets up all the default values.  
|-
|-
|public  
|public  
|[[JSimpleXMLElement::addAttribute/11.1|addAttribute]]
|[[API17:JSimpleXMLElement::addAttribute|addAttribute]]
|Adds an attribute to the element.  
|Adds an attribute to the element.  
|-
|-
|public  
|public  
|[[JSimpleXMLElement::addChild/11.1|addChild]]
|[[API17:JSimpleXMLElement::addChild|addChild]]
|Adds a direct child to the element.  
|Adds a direct child to the element.  
|-
|-
|public  
|public  
|[[JSimpleXMLElement::attributes/11.1|attributes]]
|[[API17:JSimpleXMLElement::attributes|attributes]]
|Get the an attribute of the element.  
|Get the an attribute of the element.  
|-
|-
|public  
|public  
|[[JSimpleXMLElement::children/11.1|children]]
|[[API17:JSimpleXMLElement::children|children]]
|Get the children of the element.  
|Get the children of the element.  
|-
|-
|public  
|public  
|[[JSimpleXMLElement::data/11.1|data]]
|[[API17:JSimpleXMLElement::data|data]]
|Get the data of the element.  
|Get the data of the element.  
|-
|-
|public  
|public  
|[[JSimpleXMLElement::getElementByPath/11.1|getElementByPath]]
|[[API17:JSimpleXMLElement::getElementByPath|getElementByPath]]
|Get an element in the document by / separated path.  
|Get an element in the document by / separated path.  
|-
|-
|public  
|public  
|[[JSimpleXMLElement::level/11.1|level]]
|[[API17:JSimpleXMLElement::level|level]]
|Get the level of the element.  
|Get the level of the element.  
|-
|-
|public  
|public  
|[[JSimpleXMLElement::map/11.1|map]]
|[[API17:JSimpleXMLElement::map|map]]
|Traverses the tree calling the $callback( $this, mixed $args=array()) function with each .  
|Traverses the tree calling the $callback( $this, mixed $args=array()) function with each .  
|-
|-
|public  
|public  
|[[JSimpleXMLElement::name/11.1|name]]
|[[API17:JSimpleXMLElement::name|name]]
|Get the name of the element.  
|Get the name of the element.  
|-
|-
|public  
|public  
|[[JSimpleXMLElement::removeAttribute/11.1|removeAttribute]]
|[[API17:JSimpleXMLElement::removeAttribute|removeAttribute]]
|Removes an attribute from the element.  
|Removes an attribute from the element.  
|-
|-
|public  
|public  
|[[JSimpleXMLElement::removeChild/11.1|removeChild]]
|[[API17:JSimpleXMLElement::removeChild|removeChild]]
|
|
|-
|-
|public  
|public  
|[[JSimpleXMLElement::setData/11.1|setData]]
|[[API17:JSimpleXMLElement::setData|setData]]
|Set the data of the element.  
|Set the data of the element.  
|-
|-
|public  
|public  
|[[JSimpleXMLElement::toString/11.1|toString]]
|[[API17:JSimpleXMLElement::toString|toString]]
|Return a well-formed XML string based on SimpleXML element.  
|Return a well-formed XML string based on SimpleXML element.  
|-
|-
|}
|}
* '''Defined in''' libraries/joomla/utilities/simplexml.php
* '''Defined in''' libraries/joomla/utilities/simplexml.php
* '''Extends''' [[JObject/11.1|JObject]]
* '''Extends''' [[API17:JObject|JObject]]
===Importing===
===Importing===
<source lang="php">jimport( 'joomla.utilities.simplexml' );</source>
<source lang="php">jimport( 'joomla.utilities.simplexml' );</source>
===See also===
===See also===
* {{JVer|11.1}} '''JSimpleXMLElement source code''' on [[jplatform:utilities/simplexml.php|BitBucket]]
* {{JVer|11.1}} '''JSimpleXMLElement source code''' on [[jplatform:utilities/simplexml.php|BitBucket]]
* {{JVer|11.1}} Subpackage [[Subpackage Utilities/11.1|Utilities]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage Utilities|Utilities]]
* [[JSimpleXMLElement|Other versions of JSimpleXMLElement]]
* [[API17:JSimpleXMLElement|Other versions of JSimpleXMLElement]]
{{SeeAlso:JSimpleXMLElement}}
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JSimpleXMLElement|Edit See Also]]<nowiki>]</nowiki>
</span>
===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JSimpleXMLElement
category=JSimpleXMLElement
category=CodeExample
namespace=CodeExample
category=ClassExample
category=ClassExample
include=*
include=*
Line 93: Line 89:
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JSimpleXMLElement]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 03:43, 25 March 2017

Joomla 11.1 JSimpleXMLElement

Description

Methods

Visibility Method name Description
public __construct Constructor, sets up all the default values.
public addAttribute Adds an attribute to the element.
public addChild Adds a direct child to the element.
public attributes Get the an attribute of the element.
public children Get the children of the element.
public data Get the data of the element.
public getElementByPath Get an element in the document by / separated path.
public level Get the level of the element.
public map Traverses the tree calling the $callback( $this, mixed $args=array()) function with each .
public name Get the name of the element.
public removeAttribute Removes an attribute from the element.
public removeChild
public setData Set the data of the element.
public toString Return a well-formed XML string based on SimpleXML element.
  • Defined in libraries/joomla/utilities/simplexml.php
  • Extends JObject

Importing

jimport( 'joomla.utilities.simplexml' );

See also


User contributed notes

Code Examples