Actions

API17

Difference between revisions of "JCategoryNode"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (moving preparation)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
=={{JVer|11.1}} JCategoryNode==
 +
===Description===
 +
{{Description:JCategoryNode}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JCategoryNode|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JCategoryNode|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{Description:JCategoryNode}}
 
===Defined in===
 
libraries/joomla/application/categories.php
 
===Subpackage===
 
[[Subpackage Application/11.1|Application]]
 
===Extends===
 
[[JObject/11.1|JObject]]
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
|[[JCategoryNode::__construct/11.1|__construct]]
+
|public
 +
|[[API17:JCategoryNode::__construct|__construct]]
 
|Class constructor.  
 
|Class constructor.  
 
|-
 
|-
|[[JCategoryNode::addChild/11.1|addChild]]
+
|public
 +
|[[API17:JCategoryNode::addChild|addChild]]
 
|Add child to this node.  
 
|Add child to this node.  
 
|-
 
|-
|[[JCategoryNode::getAuthor/11.1|getAuthor]]
+
|public
 +
|[[API17:JCategoryNode::getAuthor|getAuthor]]
 
|Returns the user that authored the category.  
 
|Returns the user that authored the category.  
 
|-
 
|-
|[[JCategoryNode::getChildren/11.1|getChildren]]
+
|public 
 +
|[[API17:JCategoryNode::getChildren|getChildren]]
 
|Get the children of this node.  
 
|Get the children of this node.  
 
|-
 
|-
|[[JCategoryNode::getMetadata/11.1|getMetadata]]
+
|public
 +
|[[API17:JCategoryNode::getMetadata|getMetadata]]
 
|Returns the category metadata.  
 
|Returns the category metadata.  
 
|-
 
|-
|[[JCategoryNode::getNumItems/11.1|getNumItems]]
+
|public
 +
|[[API17:JCategoryNode::getNumItems|getNumItems]]
 
|
 
|
 
|-
 
|-
|[[JCategoryNode::getParams/11.1|getParams]]
+
|public
 +
|[[API17:JCategoryNode::getParams|getParams]]
 
|Returns the category parameters.  
 
|Returns the category parameters.  
 
|-
 
|-
|[[JCategoryNode::getParent/11.1|getParent]]
+
|public 
 +
|[[API17:JCategoryNode::getParent|getParent]]
 
|Get the parent of this node.  
 
|Get the parent of this node.  
 
|-
 
|-
|[[JCategoryNode::getPath/11.1|getPath]]
+
|public
 +
|[[API17:JCategoryNode::getPath|getPath]]
 
|Returns the category path to the root category.  
 
|Returns the category path to the root category.  
 
|-
 
|-
|[[JCategoryNode::getSibling/11.1|getSibling]]
+
|public
 +
|[[API17:JCategoryNode::getSibling|getSibling]]
 
|Returns the right or left sibling of a category.  
 
|Returns the right or left sibling of a category.  
 
|-
 
|-
|[[JCategoryNode::hasChildren/11.1|hasChildren]]
+
|public
 +
|[[API17:JCategoryNode::hasChildren|hasChildren]]
 
|Test if this node has children.  
 
|Test if this node has children.  
 
|-
 
|-
|[[JCategoryNode::hasParent/11.1|hasParent]]
+
|public
 +
|[[API17:JCategoryNode::hasParent|hasParent]]
 
|Test if this node has a parent.  
 
|Test if this node has a parent.  
 
|-
 
|-
|[[JCategoryNode::removeChild/11.1|removeChild]]
+
|public
 +
|[[API17:JCategoryNode::removeChild|removeChild]]
 
|Remove a specific child.  
 
|Remove a specific child.  
 
|-
 
|-
|[[JCategoryNode::setAllLoaded/11.1|setAllLoaded]]
+
|public
 +
|[[API17:JCategoryNode::setAllLoaded|setAllLoaded]]
 
|
 
|
 
|-
 
|-
|[[JCategoryNode::setParent/11.1|setParent]]
+
|public
 +
|[[API17:JCategoryNode::setParent|setParent]]
 
|Set the parent of this category.  
 
|Set the parent of this category.  
 
|-
 
|-
|[[JCategoryNode::setSibling/11.1|setSibling]]
+
|public
 +
|[[API17:JCategoryNode::setSibling|setSibling]]
 
|Function to set the left or right sibling of a category.  
 
|Function to set the left or right sibling of a category.  
 
|-
 
|-
 
|}
 
|}
 +
* '''Defined in''' libraries/joomla/application/categories.php
 +
* '''Extends''' [[API17:JObject|JObject]]
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.application.categories' );</source>
 
<source lang="php">jimport( 'joomla.application.categories' );</source>
 
===See also===
 
===See also===
* [[JCategoryNode|Other versions of this class]]
+
* {{JVer|11.1}} '''JCategoryNode source code''' on [[jplatform:application/categories.php|BitBucket]]
 +
* {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]]
 +
* [[API17:JCategoryNode|Other versions of JCategoryNode]]
 
{{SeeAlso:JCategoryNode}}
 
{{SeeAlso:JCategoryNode}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JCategoryNode|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JCategoryNode|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Examples===
+
===User contributed notes===
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 82: Line 98:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JCategoryNode]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 19:55, 11 May 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JCategoryNode

Description

Description:JCategoryNode [Edit Descripton]

Methods

Visibility Method name Description
public __construct Class constructor.
public addChild Add child to this node.
public getAuthor Returns the user that authored the category.
public getChildren Get the children of this node.
public getMetadata Returns the category metadata.
public getNumItems
public getParams Returns the category parameters.
public getParent Get the parent of this node.
public getPath Returns the category path to the root category.
public getSibling Returns the right or left sibling of a category.
public hasChildren Test if this node has children.
public hasParent Test if this node has a parent.
public removeChild Remove a specific child.
public setAllLoaded
public setParent Set the parent of this category.
public setSibling Function to set the left or right sibling of a category.
  • Defined in libraries/joomla/application/categories.php
  • Extends JObject

Importing

jimport( 'joomla.application.categories' );

See also

SeeAlso:JCategoryNode [Edit See Also]

User contributed notes

<CodeExamplesForm />