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

Class: MDB2_Iterator

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

Class Overview

MDB2_Result
   |
   --MDB2_Iterator



Author(s):

Methods


Child classes:

Inherited Variables

Inherited Methods


Class Details

[line 52]


[ Top ]


Method Detail

__construct (Constructor)   [line 63]

MDB2_Iterator __construct( &$result)

Constructor

Parameters:

   &$result   — 

[ Top ]

__destruct (Destructor)   [line 155]

void __destruct( )

Destructor

[ Top ]

current   [line 116]

void current( )

return a row of data
  • Access: public

[ Top ]

free   [line 144]

boolean free( )

Free the internal resources associated with result.
  • Return: true on success, false if result is invalid
  • Access: public

[ Top ]

key   [line 169]

void key( )

nothing, but Iterator wants to implement this.
  • Access: public

[ Top ]

next   [line 92]

void next( )

Fetch next row of data
  • Access: public

Overridden in child classes as:

MDB2_BufferedIterator::next()
Fetch next row of data

[ Top ]

rewind   [line 183]

void rewind( )

seek to the first row in a result set
  • Access: public

Overridden in child classes as:

MDB2_BufferedIterator::rewind()
seek to the first row in a result set

[ Top ]

seek   [line 78]

void seek( [int $rownum = 0])

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

Overridden in child classes as:

MDB2_BufferedIterator::seek()
seek to a specific row in a result set

Parameters:

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

[ Top ]

valid   [line 130]

mixed valid( )

check if the end of the result set has been reached
  • Return: true or false on sucess, a MDB2 error on failure
  • Access: public

Overridden in child classes as:

MDB2_BufferedIterator::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.