Method to set the location of a node in the tree object. This method does not save the new location to the database, but will set it in the object so that when the node is stored it will be stored in the new location.
Signature
public function setLocation(integer
$referenceId,
[string
$position = 'after'] )
Parameters
$referenceId
The primary key of the node to reference new location by.
$position
Location type string. ['before', 'after', 'first-child', 'last-child']