API16

Difference between revisions of "JNode/hasChildren"

From Joomla! Documentation

< API16:JNode
(New page: ===Description=== Test if this node has children <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki...)
(No difference)

Revision as of 17:37, 22 March 2010

The "API16" 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.

Description[edit]

Test if this node has children

[Edit Descripton]

Template:Description:JNode/hasChildren

Syntax[edit]

hasChildren()


Returns[edit]

bool

Defined in[edit]

libraries/joomla/base/node.php

Importing[edit]

jimport( 'joomla.base.node' );

Source Body[edit]

function hasChildren() 
{
        return count($this->_children);
}

[Edit See Also] Template:SeeAlso:JNode/hasChildren

Examples[edit]

<CodeExamplesForm />