API16

JCategories/node

< API16:JCategories

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

Return a node


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

Syntax

node($id='root')
Parameter Name Default Value Description
$id 'root' optional id

Returns

JCategoryNode|null

Defined in

libraries/joomla/application/categories.php

Importing

jimport( 'joomla.application.categories' );

Source Body

public function node($id='root')
{
        if (isset($this->_nodes[$id]) && $this->_nodes[$id] instanceof JCategoryNode)
        {
                return $this->_nodes[$id];
        }
        else
        {
                return null;
        }
}


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

Examples

Code Examples


Advertisement