MDB2
[ class tree: MDB2 ] [ index: MDB2 ] [ all elements ]

Class: MDB2_BufferedIterator

Source Location: /MDB2-2.0.0beta3/MDB2/Iterator.php

Class Overview

MDB2_Result
   |
   --MDB2_Iterator
      |
      --MDB2_BufferedIterator



Author(s):

Methods


Inherited Variables

Inherited Methods

Class: MDB2_Iterator

MDB2_Iterator::__construct()
Constructor
MDB2_Iterator::current()
return a row of data
MDB2_Iterator::free()
Free the internal resources associated with result.
MDB2_Iterator::key()
nothing, but Iterator wants to implement this.
MDB2_Iterator::next()
Fetch next row of data
MDB2_Iterator::rewind()
seek to the first row in a result set
MDB2_Iterator::seek()
seek forward to a specific row in a result set
MDB2_Iterator::valid()
check if the end of the result set has been reached
MDB2_Iterator::__destruct()
Destructor

Class Details

[line 189]


[ Top ]


Method Detail

count   [line 249]

mixed count( )

returns the number of rows in a result object
  • Return: MDB2 Error Object or the number of rows
  • Access: public

[ Top ]

hasPrev   [line 263]

mixed hasPrev( )

check if there is a previous row
  • Return: true or false on sucess, a MDB2 error on failure
  • Access: public

[ Top ]

next   [line 229]

void next( )

Fetch next row of data
  • Access: public

Overrides MDB2_Iterator::next() (Fetch next row of data)
[ Top ]

prev   [line 292]

void prev( )

move internal row point to the previous row Fetch and return a row of data
  • Access: public

[ Top ]

rewind   [line 277]

mixed rewind( )

seek to the first row in a result set
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: public

Overrides MDB2_Iterator::rewind() (seek to the first row in a result set)
[ Top ]

seek   [line 200]

void seek( int $rownum)

seek to a specific row in a result set
  • Access: public

Overrides MDB2_Iterator::seek() (seek forward to a specific row in a result set)

Parameters:

int   $rownum   —  number of the row where the data can be found

[ Top ]

valid   [line 215]

void valid( )

check if the end of the result set has been reached
  • Access: public

Overrides MDB2_Iterator::valid() (check if the end of the result set has been reached)
[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:28:17 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.