JNode
From Joomla! Documentation
Revision as of 17:11, 22 March 2010 by Doxiki (talk | contribs) (New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JNode}}
===Defined in===
libraries...)
Revision as of 17:11, 22 March 2010 by Doxiki (talk | contribs) (New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JNode}}
===Defined in===
libraries...)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
The "API15" 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:JNode
Defined in[edit]
libraries/joomla/base/tree.php
Methods[edit]
Method name | Description |
---|---|
__construct | Class constructor, overridden in descendant classes. |
addChild | |
getParent | |
setParent | |
hasChildren | |
getChildren |
Importing[edit]
jimport( 'joomla.base.tree' );
[Edit See Also] Template:SeeAlso:JNode
Examples[edit]
<CodeExamplesForm />
JTree and JNode can be used to create and process simple tree structures. Let's see how this works for JNode with a simple example.
We want represent the family structure 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.