API15

API15:JCategoryNode/hasChildren

From Joomla! Documentation

Description

Returns true if the category has children boolean


[<! removed edit link to red link >]

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

Syntax

hasChildren()


Returns

boolean

Defined in

libraries/joomla/application/categories.php

Importing

jimport( 'joomla.application.categories' );

Source Body

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

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

Examples

Code Examples