|
Doctrine 1.2.4
|
Inherits IteratorAggregate.
Inherited by Doctrine_Node_AdjacencyList, and Doctrine_Node_MaterializedPath.
Public Member Functions | |
| __construct (Doctrine_Record $record, $options) | |
| getIterator ($type=null, $options=null) | |
| getRecord () | |
| setIteratorOptions ($options) | |
| setIteratorType ($type) | |
| setRecord (Doctrine_Record $record) | |
| traverse ($type= 'Pre', $options=array()) | |
Static Public Member Functions | |
| static | factory (Doctrine_Record $record, $implName, $options=array()) |
Protected Attributes | |
| $iteratorOptions | |
| $iteratorType | |
| $options | |
| $record | |
| Doctrine_Node::__construct | ( | Doctrine_Record | $record, |
| $options | |||
| ) |
contructor, creates node with reference to record and any options
| object | $record | instance of Doctrine_Record |
| array | $options | options |
Definition at line 68 of file Node.php.
|
static |
Factory method for creating a Node.
This is a factory method that returns node instance based upon chosen implementation.
| object | $record | instance of Doctrine_Record |
| string | $implName | implementation (NestedSet, AdjacencyList, MaterializedPath) |
| array | $options | options |
| Doctrine_Node_Exception | if $implName is not a valid class |
Definition at line 115 of file Node.php.
| Doctrine_Node::getIterator | ( | $type = null, |
|
$options = null |
|||
| ) |
get iterator
| string | $type | type of iterator (Pre | Post | Level) |
| array | $options | options |
Definition at line 163 of file Node.php.
| Doctrine_Node::getRecord | ( | ) |
getter for record attribute
| Doctrine_Node::setIteratorOptions | ( | $options | ) |
| Doctrine_Node::setIteratorType | ( | $type | ) |
| Doctrine_Node::setRecord | ( | Doctrine_Record | $record | ) |
setter for record attribute
| object | $record | instance of Doctrine_Record |
| Doctrine_Node::traverse | ( | $type = 'Pre', |
|
$options = array() |
|||
| ) |
convenience function for getIterator
| string | $type | type of iterator (Pre | Post | Level) |
| array | $options | options |
|
protected |
|
protected |
|
protected |
| object | $record | reference to associated Doctrine_Record instance |