API15

JCategoryNode: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JCategoryNode}} ===Defined ...
 
m clean up
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
{{subst:Description:JCategoryNode}}
<nowiki>[</nowiki>[[Description:JCategoryNode|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JCategoryNode}}


===Defined in===
===Defined in===
Line 36: Line 33:
<source lang="php">jimport( 'joomla.application.categories' );</source>
<source lang="php">jimport( 'joomla.application.categories' );</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JCategoryNode|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JCategoryNode}}
</span>
{{SeeAlso:JCategoryNode}}


===Examples===
===Examples===

Revision as of 13:15, 24 March 2017

{{subst:Description:JCategoryNode}}

Defined in

libraries/joomla/application/categories.php

Methods

Method name Description
__construct Class constructor
addChild Adds a child to the current element of the Categorytree
getParent Returns the parent category of the current category JCategoryNode
setParent Sets the parent for the current category
hasChildren Returns true if the category has children boolean
getChildren Returns the children of the Category array

Importing

jimport( 'joomla.application.categories' );


{{subst:SeeAlso:JCategoryNode}}

Examples

<CodeExamplesForm />