API17:JTableNested::moveByReference
From Joomla! Documentation
JTableNested::moveByReference
Description
Method to move a node and its children to a new location in the tree.
public function 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 on line 283 of libraries/joomla/database/tablenested.php
- Since

See also
JTableNested::moveByReference source code on BitBucket
Class JTableNested
Subpackage Database- Other versions of JTableNested::moveByReference
User contributed notes
Code Examples