Class: Doctrine_Node

Source Location: /Doctrine/Node.php

Class Doctrine_Node

Class Overview

Implements interfaces:

  • IteratorAggregate (internal interface)

Doctrine_Node

Located in /Doctrine/Node.php [line 32]



		
				Author(s):
		
		
		
Information Tags:
Version:  $Revision: 1949 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Properties

Methods

[ Top ]
Direct descendents
Child Class Description
Doctrine_Node_AdjacencyList Doctrine_Node_AdjacencyList
Doctrine_Node_MaterializedPath Doctrine_Node_MaterializedPath
Doctrine_Node_NestedSet Doctrine_Node_NestedSet

[ Top ]
Property Summary
mixed   $iteratorOptions  
mixed   $iteratorType  
mixed   $options  
mixed   $record  
unknown_type   $_tree   The tree to which the node belongs.

[ Top ]
Method Summary
static object   factory()   factory method to return node instance based upon chosen implementation
Doctrine_Node   __construct()   contructor, creates node with reference to record and any options
void   getIterator()   get iterator
object instance   getRecord()   getter for record attribute
void   setIteratorOptions()   sets node's iterator options
void   setIteratorType()   sets node's iterator type
void   setRecord()   setter for record attribute
void   traverse()   convenience function for getIterator

[ Top ]
Properties
mixed   $iteratorOptions [line 52]
API Tags:
Access:  protected


[ Top ]
mixed   $iteratorType [line 47]
API Tags:
Access:  protected


[ Top ]
mixed   $options [line 42]
API Tags:
Access:  protected


[ Top ]
mixed   $record [line 37]
API Tags:
Access:  protected


[ Top ]
unknown_type   $_tree [line 59]

The tree to which the node belongs.

API Tags:
Access:  protected


[ Top ]
Methods
static method factory  [line 82]

  static object factory( Doctrine_Record $record, $implName, [array $options = array()], string $impName  )

factory method to return node instance based upon chosen implementation

Parameters:
object   $record:  instance of Doctrine_Record
string   $impName:  implementation (NestedSet, AdjacencyList, MaterializedPath)
array   $options:  options
   $implName: 

API Tags:
Return:  instance of Doctrine_Node
Access:  public


[ Top ]
Constructor __construct  [line 67]

  Doctrine_Node __construct( Doctrine_Record $record, array $options  )

contructor, creates node with reference to record and any options

Parameters:
object   $record:  instance of Doctrine_Record
array   $options:  options

API Tags:
Access:  public


[ Top ]
getIterator  [line 130]

  void getIterator( [string $type = null], [array $options = null]  )

get iterator

Parameters:
string   $type:  type of iterator (Pre | Post | Level)
array   $options:  options

API Tags:
Access:  public


Implementation of:
IteratorAggregate::getIterator

[ Top ]
getRecord  [line 108]

  object instance getRecord( )

getter for record attribute


API Tags:
Return:  of Doctrine_Record
Access:  public


[ Top ]
setIteratorOptions  [line 161]

  void setIteratorOptions( int $options  )

sets node's iterator options

Parameters:
int   $options: 

API Tags:
Access:  public


[ Top ]
setIteratorType  [line 151]

  void setIteratorType( int $type  )

sets node's iterator type

Parameters:
int   $type: 

API Tags:
Access:  public


[ Top ]
setRecord  [line 98]

  void setRecord( Doctrine_Record $record  )

setter for record attribute

Parameters:
object   $record:  instance of Doctrine_Record

API Tags:
Access:  public


[ Top ]
traverse  [line 119]

  void traverse( [string $type = 'Pre'], [array $options = array()]  )

convenience function for getIterator

Parameters:
string   $type:  type of iterator (Pre | Post | Level)
array   $options:  options

API Tags:
Access:  public


[ Top ]