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. | |
flush () | |
Free resultset memory - destroy resultset object. | |
field ($field) | |
Return record from select query. | |
num_fields () | |
Return num fields from select query. | |
num_rows () | |
Return num rows from select query. | |
result () | |
Return resultset object. |
Definition at line 15 of file maxdbResultset.php.
__construct | ( | $ | result, | |
$ | connection | |||
) |
Constructor.
public
mixed | $result | |
mixed | $connection |
Definition at line 56 of file maxdbResultset.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 maxdbResultset.php.
{ if ( $this->objResult ) return maxdb_affected_rows( $this->objConnection ); }
fetch_array | ( | ) |
Return resultset as assoc array.
public
Definition at line 80 of file maxdbResultset.php.
{ if ( $this->objResult ) { $this->objRecord = maxdb_fetch_assoc( $this->objResult ); return ( $this->objRecord !== null ); } }
fetch_object | ( | ) |
Return resultset as object.
public
Definition at line 95 of file maxdbResultset.php.
{ if ( $this->objResult ) return maxdb_fetch_object( $this->objResult ); }
fetch_row | ( | ) |
Return resultset as numeric array.
public
Definition at line 107 of file maxdbResultset.php.
{ if ( $this->objResult ) { $this->objRecord = maxdb_fetch_row( $this->objResult ); return ( $this->objRecord !== null ); } }
field | ( | $ | field | ) |
Return record from select query.
public
mixed | $field |
Definition at line 139 of file maxdbResultset.php.
{ if ( $this->objResult ) { if ( get_magic_quotes_runtime() ) return stripslashes( $this->objRecord[strtoupper( $field )] ); else return $this->objRecord[strtoupper( $field )]; } }
flush | ( | ) |
Free resultset memory - destroy resultset object.
public
Definition at line 122 of file maxdbResultset.php.
{
if ( $this->objResult )
{
maxdb_free_result( $this->objResult );
$this->objRecord = array();
$this->objResult = null;
}
}
num_fields | ( | ) |
Return num fields from select query.
public
Definition at line 156 of file maxdbResultset.php.
{ if ( $this->objResult ) return maxdb_num_fields( $this->objResult ); }
num_rows | ( | ) |
Return num rows from select query.
public
Definition at line 168 of file maxdbResultset.php.
{ if ( $this->objResult ) return maxdb_num_rows( $this->objResult ); }
result | ( | ) |
Return resultset object.
public
Definition at line 180 of file maxdbResultset.php.
{
return $this->objResult;
}