Public Member Functions | |
__construct ($result, $connection) | |
Constructor. | |
affected_rows () | |
Return num of affected rows from insert/delete/update query. | |
fetch_array () | |
Return resultset as assoc array. | |
fetch_object () | |
Return resultset as object. | |
fetch_row () | |
Return resultset as numeric array. | |
field ($field) | |
Return record from select query. | |
flush () | |
Free resultset memory - destroy resultset object. | |
num_fields () | |
Return num fields from select query. | |
num_rows () | |
Return num rows from select query. | |
result () | |
Return result resource object. |
Definition at line 15 of file ingresResultset.php.
__construct | ( | $ | result, | |
$ | connection | |||
) |
Constructor.
public
mixed | $result | |
mixed | $connection |
Definition at line 56 of file ingresResultset.php.
{ $this->objConnection = $connection; $this->objResult = $result; }
affected_rows | ( | ) |
Return num of affected rows from insert/delete/update query.
public
Definition at line 68 of file ingresResultset.php.
{ if ( $this->objResult ) return ingres_num_rows( $this->objConnection ); }
fetch_array | ( | ) |
Return resultset as assoc array.
public
Definition at line 80 of file ingresResultset.php.
{ if ( $this->objResult ) { $this->objRecord = ingres_fetch_array( $this->objResult ); return ( $this->objRecord != false ); } }
fetch_object | ( | ) |
Return resultset as object.
public
Definition at line 96 of file ingresResultset.php.
{ if ( $this->objResult ) return ingres_fetch_object( $this->objResult ); }
fetch_row | ( | ) |
Return resultset as numeric array.
public
Definition at line 108 of file ingresResultset.php.
{ if ( $this->objResult ) { $this->objRecord = ingres_fetch_row(); return ( $this->objRecord != false ); } }
field | ( | $ | field | ) |
Return record from select query.
public
mixed | $field |
Definition at line 125 of file ingresResultset.php.
{ //Ingres returns an array offset starting with 1 instead of 0 when using ingres_fetch_row //We need to increment the field() offset by 1 for consistency if ( is_int( $field ) && $field >= 0 ) $field++; if ( $this->objResult ) { if ( get_magic_quotes_runtime() ) return stripslashes( $this->objRecord[$field] ); else return $this->objRecord[$field]; } }
flush | ( | ) |
Free resultset memory - destroy resultset object.
public
Definition at line 146 of file ingresResultset.php.
{
if ( $this->objResult )
{
$this->objRecord = array();
$this->objResult = null;
}
}
num_fields | ( | ) |
Return num fields from select query.
public
Definition at line 161 of file ingresResultset.php.
{ if ( $this->objResult ) return ingres_num_fields( $this->objConnection ); }
num_rows | ( | ) |
Return num rows from select query.
public
Definition at line 173 of file ingresResultset.php.
{ if ( $this->objResult ) return ingres_num_rows( $this->objConnection ); }
result | ( | ) |
Return result resource object.
public
Definition at line 185 of file ingresResultset.php.
{
return $this->objResult;
}