Actions

API17

Difference between revisions of "JSimpleXMLElement"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (moving preparation)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
=={{JVer|11.1}} JSimpleXMLElement==
 +
===Description===
 +
{{Description:JSimpleXMLElement}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JSimpleXMLElement|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JSimpleXMLElement|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{Description:JSimpleXMLElement}}
 
===Defined in===
 
libraries/joomla/utilities/simplexml.php
 
===Subpackage===
 
[[Subpackage Utilities/11.1|Utilities]]
 
===Extends===
 
[[JObject/11.1|JObject]]
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
|[[JSimpleXMLElement::__construct/11.1|__construct]]
+
|public
 +
|[[API17:JSimpleXMLElement::__construct|__construct]]
 
|Constructor, sets up all the default values.  
 
|Constructor, sets up all the default values.  
 
|-
 
|-
|[[JSimpleXMLElement::addAttribute/11.1|addAttribute]]
+
|public
 +
|[[API17:JSimpleXMLElement::addAttribute|addAttribute]]
 
|Adds an attribute to the element.  
 
|Adds an attribute to the element.  
 
|-
 
|-
|[[JSimpleXMLElement::addChild/11.1|addChild]]
+
|public
 +
|[[API17:JSimpleXMLElement::addChild|addChild]]
 
|Adds a direct child to the element.  
 
|Adds a direct child to the element.  
 
|-
 
|-
|[[JSimpleXMLElement::attributes/11.1|attributes]]
+
|public
 +
|[[API17:JSimpleXMLElement::attributes|attributes]]
 
|Get the an attribute of the element.  
 
|Get the an attribute of the element.  
 
|-
 
|-
|[[JSimpleXMLElement::children/11.1|children]]
+
|public
 +
|[[API17:JSimpleXMLElement::children|children]]
 
|Get the children of the element.  
 
|Get the children of the element.  
 
|-
 
|-
|[[JSimpleXMLElement::data/11.1|data]]
+
|public
 +
|[[API17:JSimpleXMLElement::data|data]]
 
|Get the data of the element.  
 
|Get the data of the element.  
 
|-
 
|-
|[[JSimpleXMLElement::getElementByPath/11.1|getElementByPath]]
+
|public
 +
|[[API17:JSimpleXMLElement::getElementByPath|getElementByPath]]
 
|Get an element in the document by / separated path.  
 
|Get an element in the document by / separated path.  
 
|-
 
|-
|[[JSimpleXMLElement::level/11.1|level]]
+
|public
 +
|[[API17:JSimpleXMLElement::level|level]]
 
|Get the level of the element.  
 
|Get the level of the element.  
 
|-
 
|-
|[[JSimpleXMLElement::map/11.1|map]]
+
|public
|traverses the tree calling the $callback( $this, mixed $args=array()) function with each .  
+
|[[API17:JSimpleXMLElement::map|map]]
 +
|Traverses the tree calling the $callback( $this, mixed $args=array()) function with each .  
 
|-
 
|-
|[[JSimpleXMLElement::name/11.1|name]]
+
|public
 +
|[[API17:JSimpleXMLElement::name|name]]
 
|Get the name of the element.  
 
|Get the name of the element.  
 
|-
 
|-
|[[JSimpleXMLElement::removeAttribute/11.1|removeAttribute]]
+
|public
 +
|[[API17:JSimpleXMLElement::removeAttribute|removeAttribute]]
 
|Removes an attribute from the element.  
 
|Removes an attribute from the element.  
 
|-
 
|-
|[[JSimpleXMLElement::removeChild/11.1|removeChild]]
+
|public
 +
|[[API17:JSimpleXMLElement::removeChild|removeChild]]
 
|
 
|
 
|-
 
|-
|[[JSimpleXMLElement::setData/11.1|setData]]
+
|public
 +
|[[API17:JSimpleXMLElement::setData|setData]]
 
|Set the data of the element.  
 
|Set the data of the element.  
 
|-
 
|-
|[[JSimpleXMLElement::toString/11.1|toString]]
+
|public
 +
|[[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
 +
* '''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===
* [[JSimpleXMLElement|Other versions of this class]]
+
* {{JVer|11.1}} '''JSimpleXMLElement source code''' on [[jplatform:utilities/simplexml.php|BitBucket]]
 +
* {{JVer|11.1}} Subpackage [[API17:Subpackage Utilities|Utilities]]
 +
* [[API17:JSimpleXMLElement|Other versions of JSimpleXMLElement]]
 
{{SeeAlso:JSimpleXMLElement}}
 
{{SeeAlso:JSimpleXMLElement}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JSimpleXMLElement|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JSimpleXMLElement|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Examples===
+
===User contributed notes===
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 76: Line 90:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JSimpleXMLElement]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 20:33, 11 May 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JSimpleXMLElement

Description

Description:JSimpleXMLElement [Edit Descripton]

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

  • Joomla 11.1 JSimpleXMLElement source code on BitBucket
  • Joomla 11.1 Subpackage Utilities
  • Other versions of JSimpleXMLElement

SeeAlso:JSimpleXMLElement [Edit See Also]

User contributed notes

<CodeExamplesForm />