JTableNested::moveByReference
Method to move a node and its children to a new location in the tree.
Signature
public function moveByReference(integer
$referenceId,
[string
$position = 'after',
[integer
$pk = null]] )
Parameters
-
$referenceId
- The primary key of the node to reference new location by.
-
$position
- Location type string. ['before', 'after', 'first-child', 'last-child']
-
$pk
- The primary key of the node to move.
Returns
- boolean
- True on success.
Errors/Exceptions
-
RuntimeException
- on database error.