Several changes: - added parent property - added getPath() method - added index property to make getPath() method possible - added addChild() method - made parent and children properties private - made helper methods for toArray static as they don't use any instance   variables - use the terminology 'index' instead of 'id' in documentation as it is more   correct
Several changes:
- added parent property
- added getPath() method
- added index property to make getPath() method possible
- added addChild() method
- made parent and children properties private
- made helper methods for toArray static as they don't use any instance
  variables
- use the terminology 'index' instead of 'id' in documentation as it is more
  correct

These changes break code that attempts to add child nodes directly to a node
using php array syntax. The code should be changed to addChild().



svn commit r988

silverorange/swat,silverorange/swat