JCategories/node
From Joomla! Documentation
< 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[edit]
Return a node
<! removed transcluded page call, red link never existed >
Syntax[edit]
node($id='root')
Parameter Name | Default Value | Description |
---|---|---|
$id | 'root' | optional id |
Returns[edit]
JCategoryNode|null
Defined in[edit]
libraries/joomla/application/categories.php
Importing[edit]
jimport( 'joomla.application.categories' );
Source Body[edit]
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[edit]
Code Examples[edit]