Hello, I just added a draft [1] and prototype [2] of the Tree component to SVN. Please have a look at it.
I've also a question already. In the design I mention in the "ezcTreeNode" section: Operations can be done on tree nodes as well, such as checking whether it has children, fetching a sub tree. Those methods will call corresponding methods on the tree object to actually perform the check/action. In the tests you see this as well, here the example by calling it on the node: $node = $tree->fetchById( 1 ) $node->getChildCount(); the node's getChildCount() looks like: return $this->tree->getChildCount( $this->id ); vs calling it on the tree (with the node ID being the parameter): $tree->getChildCount( 1 ); Do you think those convenience methods are useful? [1] http://article.gmane.org/gmane.comp.web.ezcomponents.cvs/5139 [2] http://article.gmane.org/gmane.comp.web.ezcomponents.cvs/5140 regards, Derick -- Derick Rethans eZ components Product Manager eZ systems | http://ez.no -- Components mailing list [email protected] http://lists.ez.no/mailman/listinfo/components
