-
-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
Description
Hi!
I like your code very much - the quick question is:
Can you please enhance your brilliant code implementing (pseudocode) as follows:
- $branch = $node->getBranch($childNode)
This should return an array defining $childNode (what is a child node of $node) with all its children.
- $branch = $node->detatchBranch($childNode)
This should behave as (1) but also remove $childNode and all it's children from $node
- $node->attachBranch($branch)
This should attach $childNode with all its children to $node
Having this functionality this library would be really great as it would enable complex manipulation on the tree structure.
sokai