Difference between revisions of "JTableNested"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
(Layout updates) |
||
Line 6: | Line 6: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/database/tablenested.php | libraries/joomla/database/tablenested.php | ||
+ | * see source code in [[jplatform:database/tablenested.php|BitBucket]] | ||
===Subpackage=== | ===Subpackage=== | ||
[[Subpackage Database/11.1|Database]] | [[Subpackage Database/11.1|Database]] | ||
Line 87: | Line 88: | ||
<source lang="php">jimport( 'joomla.database.tablenested' );</source> | <source lang="php">jimport( 'joomla.database.tablenested' );</source> | ||
===See also=== | ===See also=== | ||
+ | * JTableNested source code in [[jplatform:database/tablenested.php|BitBucket]] | ||
* [[JTableNested|Other versions of this class]] | * [[JTableNested|Other versions of this class]] | ||
{{SeeAlso:JTableNested}} | {{SeeAlso:JTableNested}} |
Revision as of 18:03, 23 April 2011
The "API17" 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:JTableNested
Defined in[edit]
libraries/joomla/database/tablenested.php
- see source code in BitBucket
Subpackage[edit]
Extends[edit]
Extended by[edit]
Methods[edit]
Method name | Description |
---|---|
check | Asset that the nested set data is valid. |
debug | Sets the debug level on or off. |
delete | Method to delete a node, and optionally its child nodes, from the table. |
getPath | Method to get an array of nodes from a given node to its root. |
getRootId | Gets the ID of the root item in the tree. |
getTree | Method to get a node and all its child nodes. |
isLeaf | Method to determine if a node is a leaf node in the tree (has no children). |
move | Method to move a row in the ordering sequence of a group of rows defined by an SQL WHERE clause. |
moveByReference | Method to move a node and its children to a new location in the tree. |
orderDown | Method to move a node one position to the right in the same level. |
orderUp | Method to move a node one position to the left in the same level. |
publish | Method to set the publishing state for a node or list of nodes in the database table. |
rebuild | Method to recursively rebuild the whole nested set tree. |
rebuildPath | Method to rebuild the node's path field from the alias values of the nodes from the current node to the root node of the tree. |
saveorder | Method to update order of table rows. |
setLocation | Method to set the location of a node in the tree object. |
store | Method to store a node in the database table. |
_getNode | Method to get nested set properties for a node in the tree. |
_getTreeRepositionData | Method to get various data necessary to make room in the tree at a location for a node and its children. |
_logtable | |
_runQuery |
Importing[edit]
jimport( 'joomla.database.tablenested' );
See also[edit]
- JTableNested source code in BitBucket
- Other versions of this class
Template:SeeAlso:JTableNested [Edit See Also]
Examples[edit]
<CodeExamplesForm />