diff --git a/Doctrine/Tree.php b/Doctrine/Tree.php new file mode 100644 index 000000000..245c0d9c7 --- /dev/null +++ b/Doctrine/Tree.php @@ -0,0 +1,43 @@ +. + */ +/** + * Doctrine_Tree + * + * the purpose of Doctrine_Tree is to provide tree access + * functionality for all records extending it + * + * @package Doctrine ORM + * @url www.phpdoctrine.com + * @license LGPL + */ +abstract class Doctrine_Tree extends Doctrine_Record { + + abstract public function getLeafNodes(); + + abstract public function getPath(); + + abstract public function getDepth(); + + abstract public function removeNode(); + + abstract public function addNode(); +} +?> diff --git a/Doctrine/Tree/NestedSet.php b/Doctrine/Tree/NestedSet.php new file mode 100644 index 000000000..3131a1727 --- /dev/null +++ b/Doctrine/Tree/NestedSet.php @@ -0,0 +1,43 @@ +. + */ +/** + * Doctrine_Tree_NestedSet + * + * the purpose of Doctrine_Tree_NestedSet is to provide NestedSet tree access + * strategy for all records extending it + * + * @package Doctrine ORM + * @url www.phpdoctrine.com + * @license LGPL + */ +class Doctrine_Tree_NestedSet extends Doctrine_Record { + + public function getLeafNodes() { } + + public function getPath() { } + + public function getDepth() { } + + public function removeNode() { } + + public function addNode() { } +} +?> diff --git a/Doctrine/Tree/PathModel.php b/Doctrine/Tree/PathModel.php new file mode 100644 index 000000000..dfdeaec18 --- /dev/null +++ b/Doctrine/Tree/PathModel.php @@ -0,0 +1,44 @@ +. + */ +/** + * Doctrine_Tree_PathModel + * + * the purpose of Doctrine_Tree_NestedSet is to provide PathModel tree access + * strategy for all records extending it + * + * @package Doctrine ORM + * @url www.phpdoctrine.com + * @license LGPL + */ +class Doctrine_Tree_PathModel extends Doctrine_Record { + + public function getLeafNodes() { } + + public function getPath() { } + + public function getDepth() { } + + public function removeNode() { } + + public function addNode() { } + +} +?>