Public Member Functions | |
__construct ($result) | |
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 resultset record. | |
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 resultset object. |
Definition at line 14 of file pgsqlResultset.php.
__construct | ( | $ | result | ) |
Constructor.
public
mixed | $result |
Definition at line 46 of file pgsqlResultset.php.
{ $this->objResult = $result; }
affected_rows | ( | ) |
Return num of affected rows from insert/delete/update query.
public
Definition at line 57 of file pgsqlResultset.php.
{ if ( $this->objResult ) return pg_affected_rows( $this->objResult ); }
fetch_array | ( | ) |
Return resultset as assoc array.
public
Definition at line 69 of file pgsqlResultset.php.
{ if ( $this->objResult ) { $this->objRecord = pg_fetch_assoc( $this->objResult ); return ( $this->objRecord !== false ); } }
fetch_object | ( | ) |
Return resultset as object.
public
Definition at line 85 of file pgsqlResultset.php.
{ if ( $this->objResult ) return pg_fetch_object( $this->objResult ); }
fetch_row | ( | ) |
Return resultset as numeric array.
public
Definition at line 97 of file pgsqlResultset.php.
{ if ( $this->objResult ) { $this->objRecord = pg_fetch_row( $this->objResult ); return ( $this->objRecord !== false ); } }
field | ( | $ | field | ) |
Return resultset record.
public
mixed | $field |
Definition at line 114 of file pgsqlResultset.php.
{ 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 130 of file pgsqlResultset.php.
{
if ( $this->objResult )
{
pg_free_result( $this->objResult );
$this->objRecord = array();
$this->objResult = null;
}
}
num_fields | ( | ) |
Return num fields from select query.
public
Definition at line 146 of file pgsqlResultset.php.
{ if ( $this->objResult ) return pg_num_fields( $this->objResult ); }
num_rows | ( | ) |
Return num rows from select query.
public
Definition at line 158 of file pgsqlResultset.php.
{ if ( $this->objResult ) return pg_num_rows( $this->objResult ); }
result | ( | ) |
Return resultset object.
public
Definition at line 170 of file pgsqlResultset.php.
{
return $this->objResult;
}