Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: c:/www/apache/doc2//pear/DB_Result.php
PEAR 2000/12/03 -

DB_result

DB_result

This class implements a wrapper for a DB result set.

 

private class DB_result

This class implements a wrapper for a DB result set.
A new instance of this class will be returned by the DB implementationafter processing a query that returns data.

AuthorsStig Bakken <ssb@fast.no>

 

Public Method Summary

void

DB_result(object reference &$dbh, $result)

DB_result constructor.

Private Method Summary

array

fetchRow(string $fetchmode)

Fetch and return a row of data.
int

fetchInto(array &$arr, string $fetchmode)

Fetch a row of data into an existing array.
int

numCols()

Get the the number of columns in a result set.
int

free()

Frees the resources allocated for this result set.

Private Field Summary

unknown

$dbh

unknown

$result

Public Method Details

DB_result

public void DB_result( object reference &$dbh, $result )

  DB_result constructor.

Parameter
object reference &$dbh
$result
Warning: documentation is missing.
Returns void


Private Method Details

fetchRow

private array fetchRow( string $fetchmode )

  Fetch and return a row of data.

Parameter
string $fetchmode
Warning: documentation is missing.
Returns array

a row of data, or false on error


fetchInto

private int fetchInto( array &$arr, string $fetchmode )

  Fetch a row of data into an existing array.

Parameter
array &$arr
string $fetchmode
Warning: documentation is missing.
Returns int

error code


numCols

private int numCols( )

  Get the the number of columns in a result set.

Returns int

the number of columns, or a DB error code


free

private int free( )

  Frees the resources allocated for this result set.

Returns int

error code


Private Field Details

$dbh

private unknown $dbh

>><<



$result

private unknown $result

>><<




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta