API15

JTree/addChild: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m preparing for archive only
 
Line 45: Line 45:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=addChild
  category=addChild
  category=JTree
  category=JTree
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:13, 25 March 2017

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

addChild(&$node, $setCurrent=false)
Parameter Name Default Value Description
&$node
$setCurrent false

Defined in

libraries/joomla/base/tree.php

Importing

jimport( 'joomla.base.tree' );

Source Body

function addChild(&$node, $setCurrent = false)
{
        $this->_current->addChild($node);
        if ($setCurrent) {
                $this->_current =& $node;
        }
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples