API16

API16:JNode/hasChildren

From Joomla! Documentation

Revision as of 01:55, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Test if this node has children



Syntax

hasChildren()


Returns

bool

Defined in

libraries/joomla/base/node.php

Importing

jimport( 'joomla.base.node' );

Source Body

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



Examples

Code Examples