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 preparing for archive only
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JCategoryNode|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JCategoryNode}}
===Defined in===
===Defined in===
libraries/joomla/application/categories.php
libraries/joomla/application/categories.php
Line 36: Line 31:
<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>
 
</span>
{{SeeAlso:JCategoryNode}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=JCategoryNode
  category=JCategoryNode
  category=CodeExample
  namespace=CodeExample
  category=ClassExample
  category=ClassExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 00:23, 25 March 2017

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' );



Examples

Code Examples