Actions

API16

JNode/hasChildren

From Joomla! Documentation

< API16:JNode
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Test if this node has children

[Edit Descripton]

Description:JNode/hasChildren

Syntax

hasChildren()


Returns

bool

Defined in

libraries/joomla/base/node.php

Importing

jimport( 'joomla.base.node' );

Source Body

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

[Edit See Also] SeeAlso:JNode/hasChildren

Examples

<CodeExamplesForm />