forked from fpietka/Zend-Nested-Set
-
Notifications
You must be signed in to change notification settings - Fork 1
/
TODO
27 lines (19 loc) · 699 Bytes
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Add elements (with or without parents)
Non-recursive delete (move up children elements)
Select:
- leafs (orphant elements)
- Direct children
Get properties:
- if an element has a parent
- if an element has children
- level in the tree of the element !!!
Get a path for current element (navigation path)
Handle getParent with a detph value (default is first)
----------------
-- Unit tests --
----------------
- Assert return values are what they should be (arrays mostly)
- Assert that there's no "hole" when deleting/moving/adding elements
- Assert there's no cross ids when deleting/mobing/adding elements
- Assert XML output is valid
- Assert Array output is an array