JSimpleXMLElement/1.5
From Joomla! Documentation
< JSimpleXMLElement(Difference between revisions)
(Bulk upload by Doxiki2) |
(Layout updates) |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| + | =={{JVer|1.5}} 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/1.5|__construct]] | |[[JSimpleXMLElement::__construct/1.5|__construct]] | ||
|Constructor, sets up all the default values. | |Constructor, sets up all the default values. | ||
|- | |- | ||
| + | |public | ||
|[[JSimpleXMLElement::addAttribute/1.5|addAttribute]] | |[[JSimpleXMLElement::addAttribute/1.5|addAttribute]] | ||
|Adds an attribute to the element. | |Adds an attribute to the element. | ||
|- | |- | ||
| + | |public | ||
|[[JSimpleXMLElement::addChild/1.5|addChild]] | |[[JSimpleXMLElement::addChild/1.5|addChild]] | ||
|Adds a direct child to the element. | |Adds a direct child to the element. | ||
|- | |- | ||
| + | |public | ||
|[[JSimpleXMLElement::attributes/1.5|attributes]] | |[[JSimpleXMLElement::attributes/1.5|attributes]] | ||
|Get the an attribute of the element. | |Get the an attribute of the element. | ||
|- | |- | ||
| + | |public | ||
|[[JSimpleXMLElement::children/1.5|children]] | |[[JSimpleXMLElement::children/1.5|children]] | ||
|Get the children of the element. | |Get the children of the element. | ||
|- | |- | ||
| + | |public | ||
|[[JSimpleXMLElement::data/1.5|data]] | |[[JSimpleXMLElement::data/1.5|data]] | ||
|Get the data of the element. | |Get the data of the element. | ||
|- | |- | ||
| + | |public | ||
|[[JSimpleXMLElement::getElementByPath/1.5|getElementByPath]] | |[[JSimpleXMLElement::getElementByPath/1.5|getElementByPath]] | ||
|Get an element in the document by / separated path. | |Get an element in the document by / separated path. | ||
|- | |- | ||
| + | |public | ||
|[[JSimpleXMLElement::level/1.5|level]] | |[[JSimpleXMLElement::level/1.5|level]] | ||
|Get the level of the element. | |Get the level of the element. | ||
|- | |- | ||
| + | |public | ||
|[[JSimpleXMLElement::map/1.5|map]] | |[[JSimpleXMLElement::map/1.5|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 | ||
|[[JSimpleXMLElement::name/1.5|name]] | |[[JSimpleXMLElement::name/1.5|name]] | ||
|Get the name of the element. | |Get the name of the element. | ||
|- | |- | ||
| + | |public | ||
|[[JSimpleXMLElement::removeAttribute/1.5|removeAttribute]] | |[[JSimpleXMLElement::removeAttribute/1.5|removeAttribute]] | ||
|Removes an attribute from the element. | |Removes an attribute from the element. | ||
|- | |- | ||
| + | |public | ||
|[[JSimpleXMLElement::removeChild/1.5|removeChild]] | |[[JSimpleXMLElement::removeChild/1.5|removeChild]] | ||
| | | | ||
|- | |- | ||
| + | |public | ||
|[[JSimpleXMLElement::setData/1.5|setData]] | |[[JSimpleXMLElement::setData/1.5|setData]] | ||
|Set the data of the element. | |Set the data of the element. | ||
|- | |- | ||
| + | |public | ||
|[[JSimpleXMLElement::toString/1.5|toString]] | |[[JSimpleXMLElement::toString/1.5|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/1.5|JObject]] | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.utilities.simplexml' );</source> | <source lang="php">jimport( 'joomla.utilities.simplexml' );</source> | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|1.5}} '''JSimpleXMLElement''' on [http://api.joomla.org/Joomla-Framework/Utilities/JSimpleXMLElement.html api.joomla.org] | ||
| + | * {{JVer|1.5}} '''JSimpleXMLElement source code''' on [[jframework15:utilities/simplexml.php|JoomlaCode]] | ||
| + | * {{JVer|1.5}} Subpackage [[Subpackage Utilities/1.5|Utilities]] | ||
| + | * [[JSimpleXMLElement|Other versions of 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 77: | Line 91: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JSimpleXMLElement]]</noinclude> | <noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JSimpleXMLElement]]</noinclude> | ||
Revision as of 18:13, 25 April 2011
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
-
JSimpleXMLElement on api.joomla.org
-
JSimpleXMLElement source code on JoomlaCode
-
Subpackage Utilities
- Other versions of JSimpleXMLElement
SeeAlso:JSimpleXMLElement [Edit See Also]
User contributed notes
<CodeExamplesForm />