Class: Doctrine_Tree
Source Location: /Doctrine/Tree.phpClass Doctrine_Tree
Class Overview
Doctrine_Tree Located in /Doctrine/Tree.php [line 32] Author(s):
|
[ Top ]
Direct descendents
Child Class | Description |
---|---|
Doctrine_Tree_AdjacencyList | Doctrine_Tree_AdjacencyList |
Doctrine_Tree_MaterializedPath | Doctrine_Tree_MaterializedPath |
Doctrine_Tree_NestedSet | Doctrine_Tree_NestedSet |
[ Top ]
Property Summary
Method Summary
static object | factory() | factory method to return tree instance based upon chosen implementation |
Doctrine_Tree | __construct() | constructor, creates tree with reference to table and any options |
void | getAttribute() | gets tree attribute value |
void | getBaseComponent() | Returns the base tree component. |
void | setAttribute() | sets tree attribute value |
void | setTableDefinition() | Used to define table attributes required for the given implementation |
void | setUp() | this method is used for setting up relations and attributes and should be used by specific implementations |
[ Top ]
Properties
Methods
static method factory [line 95]
|
factory method to return tree instance based upon chosen implementation
Parameters:object | $table: | instance of Doctrine_Table |
string | $impName: | implementation (NestedSet, AdjacencyList, MaterializedPath) |
array | $options: | options |
$implName: |
API Tags:
Return: | instance of Doctrine_Node |
Access: | public |
Information Tags:
Throws: | Doctrine_Exception if class does not extend Doctrine_Tree |
[ Top ]
Constructor __construct [line 52]
|
constructor, creates tree with reference to table and any options
Parameters:object | $table: | instance of Doctrine_Table |
array | $options: | options |
API Tags:
Access: | public |
Redefined in descendants as:
- Doctrine_Tree_NestedSet::__construct() : constructor, creates tree with reference to table and sets default root options
[ Top ]
getAttribute [line 108]
|
gets tree attribute value
Parameters:$name: |
API Tags:
Access: | public |
[ Top ]
getBaseComponent [line 126]
|
Returns the base tree component.
API Tags:
Access: | public |
[ Top ]
setAttribute [line 118]
|
sets tree attribute value
Parameters:mixed | $name: | |
$value: |
API Tags:
Access: | public |
[ Top ]
setTableDefinition [line 73]
|
Used to define table attributes required for the given implementation
API Tags:
Access: | public |
Information Tags:
Throws: | Doctrine_Tree_Exception if table attributes have not been defined |
Redefined in descendants as:
- Doctrine_Tree_NestedSet::setTableDefinition() : used to define table attributes required for the NestetSet implementation
[ Top ]