Difference between revisions of "JSimpleXMLElement"
From Joomla! Documentation
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
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> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
+ | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
+ | |public | ||
|[[JSimpleXMLElement::__construct/11.1|__construct]] | |[[JSimpleXMLElement::__construct/11.1|__construct]] | ||
|Constructor, sets up all the default values. | |Constructor, sets up all the default values. | ||
|- | |- | ||
+ | |public | ||
|[[JSimpleXMLElement::addAttribute/11.1|addAttribute]] | |[[JSimpleXMLElement::addAttribute/11.1|addAttribute]] | ||
|Adds an attribute to the element. | |Adds an attribute to the element. | ||
|- | |- | ||
+ | |public | ||
|[[JSimpleXMLElement::addChild/11.1|addChild]] | |[[JSimpleXMLElement::addChild/11.1|addChild]] | ||
|Adds a direct child to the element. | |Adds a direct child to the element. | ||
|- | |- | ||
+ | |public | ||
|[[JSimpleXMLElement::attributes/11.1|attributes]] | |[[JSimpleXMLElement::attributes/11.1|attributes]] | ||
|Get the an attribute of the element. | |Get the an attribute of the element. | ||
|- | |- | ||
+ | |public | ||
|[[JSimpleXMLElement::children/11.1|children]] | |[[JSimpleXMLElement::children/11.1|children]] | ||
|Get the children of the element. | |Get the children of the element. | ||
|- | |- | ||
+ | |public | ||
|[[JSimpleXMLElement::data/11.1|data]] | |[[JSimpleXMLElement::data/11.1|data]] | ||
|Get the data of the element. | |Get the data of the element. | ||
|- | |- | ||
+ | |public | ||
|[[JSimpleXMLElement::getElementByPath/11.1|getElementByPath]] | |[[JSimpleXMLElement::getElementByPath/11.1|getElementByPath]] | ||
|Get an element in the document by / separated path. | |Get an element in the document by / separated path. | ||
|- | |- | ||
+ | |public | ||
|[[JSimpleXMLElement::level/11.1|level]] | |[[JSimpleXMLElement::level/11.1|level]] | ||
|Get the level of the element. | |Get the level of the element. | ||
|- | |- | ||
+ | |public | ||
|[[JSimpleXMLElement::map/11.1|map]] | |[[JSimpleXMLElement::map/11.1|map]] | ||
− | | | + | |Traverses the tree calling the $callback( $this, mixed $args=array()) function with each . |
|- | |- | ||
+ | |public | ||
|[[JSimpleXMLElement::name/11.1|name]] | |[[JSimpleXMLElement::name/11.1|name]] | ||
|Get the name of the element. | |Get the name of the element. | ||
|- | |- | ||
+ | |public | ||
|[[JSimpleXMLElement::removeAttribute/11.1|removeAttribute]] | |[[JSimpleXMLElement::removeAttribute/11.1|removeAttribute]] | ||
|Removes an attribute from the element. | |Removes an attribute from the element. | ||
|- | |- | ||
+ | |public | ||
|[[JSimpleXMLElement::removeChild/11.1|removeChild]] | |[[JSimpleXMLElement::removeChild/11.1|removeChild]] | ||
| | | | ||
|- | |- | ||
+ | |public | ||
|[[JSimpleXMLElement::setData/11.1|setData]] | |[[JSimpleXMLElement::setData/11.1|setData]] | ||
|Set the data of the element. | |Set the data of the element. | ||
|- | |- | ||
+ | |public | ||
|[[JSimpleXMLElement::toString/11.1|toString]] | |[[JSimpleXMLElement::toString/11.1|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''' [[JObject/11.1|JObject]] | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.utilities.simplexml' );</source> | <source lang="php">jimport( 'joomla.utilities.simplexml' );</source> | ||
===See also=== | ===See also=== | ||
− | * JSimpleXMLElement source code | + | * {{JVer|11.1}} '''JSimpleXMLElement source code''' on [[jplatform:utilities/simplexml.php|BitBucket]] |
− | * [[JSimpleXMLElement|Other versions of | + | * {{JVer|11.1}} Subpackage [[Subpackage Utilities/11.1|Utilities]] |
+ | * [[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> | ||
− | === | + | ===User contributed notes=== |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 78: | 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]][[Category:Platform 11.1]][[Category:JSimpleXMLElement]]</noinclude> |
Revision as of 18:08, 27 April 2011
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JSimpleXMLElement[edit]
Description[edit]
Template:Description:JSimpleXMLElement [Edit Descripton]
Methods[edit]
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[edit]
jimport( 'joomla.utilities.simplexml' );
See also[edit]
- JSimpleXMLElement source code on BitBucket
- Subpackage Utilities
- Other versions of JSimpleXMLElement
Template:SeeAlso:JSimpleXMLElement [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />