Class xPDOIterator

Description

Implements interfaces:

  • Iterator (internal interface)

An iteratable representation of an xPDOObject result set.

Constants

Use an xPDOIterator to loop over large result sets and work with one instance at a time. This greatly reduces memory usage over loading the entire collection of objects into memory at one time. It is also slightly faster.

Located in /xpdo/xpdo.class.php (line 2382)


	
			
Variable Summary
 mixed $alias
 mixed $cacheFlag
 mixed $class
 mixed $criteria
 mixed $current
 mixed $index
 mixed $stmt
 mixed $xpdo
Method Summary
 xPDOIterator __construct (xPDO &$xpdo, [ $options = array()])
 void current ()
 void fetch ()
 void key ()
 void next ()
 void rewind ()
 void valid ()
Variables
mixed $alias = null (line 2388)

Constants

  • access: private
mixed $cacheFlag = false (line 2391)

Constants

  • access: private
mixed $class = null (line 2387)

Constants

  • access: private
mixed $criteria = null (line 2389)

Constants

  • access: private
mixed $criteriaType = 'xPDOQuery' (line 2390)

Constants

  • access: private
mixed $current = null (line 2385)

Constants

  • access: private
mixed $index = 0 (line 2384)

Constants

  • access: private
mixed $stmt = null (line 2386)

Constants

  • access: private
mixed $xpdo = null (line 2383)

Constants

  • access: private
Methods
Constructor __construct (line 2401)

Construct a new xPDOIterator instance (do not call directly).

Constants

xPDOIterator __construct (xPDO &$xpdo, [ $options = array()])
  • xPDO &$xpdo: A reference to a valid xPDO instance.
  • array $options: An array of options for the iterator.
current (line 2439)

Constants

  • access: public
void current ()

Implementation of:
Iterator::current
fetch (line 2465)

Fetch the next row from the result set and set it as current.

Constants

Uses the loader defined for the specified class, so it does respect security.

  • access: protected
void fetch ()
key (line 2443)

Constants

  • access: public
void key ()

Implementation of:
Iterator::key
next (line 2447)

Constants

  • access: public
void next ()

Implementation of:
Iterator::next
rewind (line 2428)

Constants

  • access: public
void rewind ()

Implementation of:
Iterator::rewind
valid (line 2456)

Constants

  • access: public
void valid ()

Implementation of:
Iterator::valid

Documentation generated on Fri, 17 Jun 2011 10:04:05 -0600 by phpDocumentor 1.4.3