Class Zend_Db_Table_Rowset

Description

Implements interfaces:

  • license: Zend
  • copyright: Copyright (c) 2005-2006 Zend Technologies Inc. (http://www.zend.com)

Located in /Zend/Db/Table/Rowset.php (line 32)


	
			
Variable Summary
 mixed $_count
 array $_data
 Zend_Db_Adapter $_db
 mixed $_pointer
 mixed $_rows
Method Summary
 Zend_Db_Table_Rowset __construct ([mixed $config = array()])
 int count ()
 mixed current ()
 bool exists ()
 int key ()
 int next ()
 void rewind ()
 array toArray ()
 bool valid ()
Variables
mixed $_count (line 63)

How many data rows there are.

  • access: protected
array $_data = array() (line 39)

The original data for each row.

  • access: protected
Zend_Db_Adapter $_db (line 46)

Zend_Db_Adapter object from the table interface.

  • access: protected
mixed $_pointer = 0 (line 58)

Iterator pointer.

  • access: protected
mixed $_rows = array() (line 69)

Collection of instantiated Zend_Db_Table_Row objects.

  • access: protected
Zend_Db_Table $_table (line 53)

Zend_Db_Table object.

  • access: protected
Methods
Constructor __construct (line 74)

Constructor.

  • access: public
Zend_Db_Table_Rowset __construct ([mixed $config = array()])
count (line 160)

Returns the number of elements in the collection.

  • access: public
int count ()
current (line 101)

Return the current element.

Similar to the current() function for arrays in PHP

  • return: current element from the collection
  • access: public
mixed current ()
exists (line 170)

Returns true if $this->count > 0, false otherwise.

  • access: public
bool exists ()
key (line 128)

Return the identifying key of the current element.

Similar to the key() function for arrays in PHP.

  • access: public
int key ()
next (line 139)

Move forward to next element.

Similar to the next() function for arrays in PHP.

  • return: The next pointer value.
  • access: public
int next ()
rewind (line 90)

Rewind the Iterator to the first element.

Similar to the reset() function for arrays in PHP.

  • access: public
void rewind ()
toArray (line 182)

Returns all data as an array.

Updates the $_data property with current row object values.

  • access: public
array toArray ()
valid (line 150)

Check if there is a current element after calls to rewind() or next().

Used to check if we've iterated to the end of the collection.

  • return: False if there's nothing more to iterate over
  • access: public
bool valid ()

Documentation generated on Tue, 18 Apr 2006 11:55:33 -0700 by phpDocumentor 1.3.0RC3