API17:JTableNested::moveByReference
From Joomla! Documentation
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.
JTableNested::moveByReference
Description
Method to move a node and its children to a new location in the tree.
Description:JTableNested::moveByReference [Edit Descripton]
Since
Synopsis
public JTableNested::moveByReference ($referenceId, $position= 'after', $pk=null)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $referenceId | integer | The primary key of the node to reference new location by. | |
| $position | string | 'after' | Location type string. ['before', 'after', 'first-child', 'last-child'] |
| $pk | integer | null | The primary key of the node to move. |
Returns
boolean True on success.
Defined in
libraries/joomla/database/tablenested.php (line 283)
- see source code in BitBucket
Referenced by
See also
SeeAlso:JTableNested::moveByReference
Examples
<CodeExamplesForm />
