API17

Difference between revisions of "JSimpleXMLElement::addChild"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by the same user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JSimpleXMLElement::addChild|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JSimpleXMLElement::addChild|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JSimpleXMLElement->addChild ($name, $attrs=array(), $level=null)
+
public function addChild (
 +
        $name
 +
        $attrs=array
 +
        $level=null
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 32: Line 35:
 
|int
 
|int
 
|null
 
|null
|
+
|$level
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' The added child object
The added child object
+
* '''Defined''' on line 499 of libraries/joomla/utilities/simplexml.php
===Defined in===
 
libraries/joomla/utilities/simplexml.php
 
===Referenced by===
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JSimpleXMLElement::addChild source code''' on [[jplatform:utilities/simplexml.php#cl-491|BitBucket]]
 +
* {{JVer|11.1}} Class [[JSimpleXMLElement/11.1|JSimpleXMLElement]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]]
 +
* [[JSimpleXMLElement::addChild|Other versions of JSimpleXMLElement::addChild]]
 +
{{SeeAlso:JSimpleXMLElement::addChild}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JSimpleXMLElement::addChild|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JSimpleXMLElement::addChild|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JSimpleXMLElement/11.1|JSimpleXMLElement]]
+
===User contributed notes===
* [[JSimpleXMLElement::addChild|Other versions of this method]]
 
{{SeeAlso:JSimpleXMLElement::addChild}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 55: Line 57:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JSimpleXMLElement]][[Category:JSimpleXMLElement::addChild]]</noinclude>
 
<noinclude>[[Category:JSimpleXMLElement]][[Category:JSimpleXMLElement::addChild]]</noinclude>

Revision as of 21:41, 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.

Joomla 11.1 JSimpleXMLElement::addChild[edit]

Description[edit]

Adds a direct child to the element.

Template:Description:JSimpleXMLElement::addChild [Edit Descripton]

public function addChild (
        $name
        $attrs=array
        $level=null
)
Parameter Type Default Description
$name string
$attrs array array()
$level int null $level
  • Returns The added child object
  • Defined on line 499 of libraries/joomla/utilities/simplexml.php

See also[edit]

Template:SeeAlso:JSimpleXMLElement::addChild [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />