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

Class: MDB2_Iterator

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

Class Overview

MDB2_Result
   |
   --MDB2_Iterator



Author(s):

Methods


Child classes:

Inherited Variables

Inherited Methods


Class Details

[line 53]


[ Top ]


Method Detail

current   [line 127]

mixed current( )

return a row of data
  • Return: data array on success, a MDB2 error on failure
  • Access: public

[ Top ]

free   [line 155]

boolean free( )

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

[ Top ]

next   [line 102]

mixed next( )

Fetch next row of data
  • Return: data array on success, a MDB2 error on failure
  • Access: public

Overridden in child classes as:

MDB2_BufferedIterator::next()
Fetch next row of data

[ Top ]

seek   [line 80]

mixed seek( [int $rownum = 0])

seek forward to a specific row in a result set
  • Return: MDB2_OK on success, a MDB2 error on failure
  • 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 141]

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 ]

__constructor   [line 65]

void __constructor( &$result)

Constructor

Parameters:

   &$result   — 

[ Top ]

__destructor   [line 166]

void __destructor( )

Destructor

[ Top ]


Documentation generated on Mon, 11 Mar 2019 10:15:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.