Difference between revisions of "JTree"
From Joomla! Documentation
(New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JTree}}
===Defined in===
libraries...) |
(→Examples: Fix examples section) |
||
Line 36: | Line 36: | ||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
+ | namespace=CodeExample | ||
category=JTree | category=JTree | ||
category=CodeExample | category=CodeExample | ||
Line 41: | Line 42: | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
+ | reset=categories | ||
</dpl> | </dpl> |
Revision as of 03:07, 10 July 2013
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.
[Edit Descripton] Template:Description:JTree
Defined in[edit]
libraries/joomla/base/tree.php
Methods[edit]
Method name | Description |
---|---|
__construct | |
addChild | |
getParent | |
reset |
Importing[edit]
jimport( 'joomla.base.tree' );
[Edit See Also] Template:SeeAlso:JTree
Examples[edit]
<CodeExamplesForm />
JTree and JNode can be used to create and process simple tree structures. Let's see how this works for JTree with a simple example.
We want to create the Family Tree of the Smiths. Granny Barbara has two daughters. Stefanie and Aunti Sue. Stefanie has two children, Peter and Stewie. Auntie Sue doesn't have children.
Let's take a look how we can represent this familiy in an object tree.