API16:JCategories/node
From Joomla! Documentation
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