tree_new_first_child_of
tree_new_next_sibling_of
tree_new_previous_sibling_of
tree_dump_as_array
, what exactly do I have to add into that function as array()?So if you look at the image in the readme of the repo:
So if you have the object $custserv (which contains the node "Customer Services"), then
$custserv->tree_get_parent() will return the object for "Managing director"
$custserv->tree_get_first_child() will return the object for "Assistent 1"
$newnode->tree_new_first_child_of($custserv) will insert $newnode before "Assistent 1"
$newmode->tree_new_next_sybling_of($assistent1) will insert $newnode between "Assistent 1" and "Assistent 2"
It looks like you're new here. If you want to get involved, click one of these buttons!