Public Member Functions | |
| __construct ($result, $connection) | |
| Constructor. | |
| affected_rows () | |
| Returns 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 () | |
| Frees resultset. | |
| num_fields () | |
| Return num fields from select query. | |
| num_rows () | |
| Return num rows from select query - MUST be used with "select count(*)". | |
| result () | |
| Return resultset object. | |
Definition at line 15 of file firebirdResultset.php.
| __construct | ( | $ | result, | |
| $ | connection | |||
| ) |
Constructor.
public
| mixed | $result | |
| mixed | $connection |
Definition at line 56 of file firebirdResultset.php.
{
$this->objConnection = $connection;
$this->objResult = $result;
}
| affected_rows | ( | ) |
Returns num of affected rows from insert/delete/update query.
public
Definition at line 68 of file firebirdResultset.php.
{
if ( $this->objResult )
return ibase_affected_rows( $this->objConnection );
}
| fetch_array | ( | ) |
Return resultset as assoc array.
public
Definition at line 80 of file firebirdResultset.php.
{
if ( $this->objResult )
{
$this->objRecord = ibase_fetch_assoc( $this->objResult );
return ( $this->objRecord != false );
}
}
| fetch_object | ( | ) |
Return resultset as object.
public
Definition at line 95 of file firebirdResultset.php.
{
if ( $this->objResult )
return ibase_fetch_object( $this->objResult );
}
| fetch_row | ( | ) |
Return resultset as numeric array.
public
Definition at line 107 of file firebirdResultset.php.
{
if ( $this->objResult )
{
$this->objRecord = ibase_fetch_row( $this->objResult );
return ( $this->objRecord != false );
}
}
| field | ( | $ | field | ) |
Return record from select query.
public
| mixed | $field |
Definition at line 123 of file firebirdResultset.php.
{
if ( $this->objResult )
{
if ( get_magic_quotes_runtime() )
return stripslashes( $this->objRecord[strtoupper( $field )] );
else
return $this->objRecord[strtoupper( $field )];
}
}
| flush | ( | ) |
Frees resultset.
public
Definition at line 139 of file firebirdResultset.php.
{
if ( $this->objResult )
{
ibase_free_result( $this->objResult );
$this->objRecord = array();
$this->objResult = null;
}
}
| num_fields | ( | ) |
Return num fields from select query.
public
Definition at line 155 of file firebirdResultset.php.
{
if ( $this->objResult )
return ibase_num_fields( $this->objResult );
}
| num_rows | ( | ) |
Return num rows from select query - MUST be used with "select count(*)".
public
Definition at line 167 of file firebirdResultset.php.
{
if ( $this->objResult )
{
while ( $row = ibase_fetch_row( $this->objResult ) )
return $row[0];
}
}
| result | ( | ) |
Return resultset object.
public
Definition at line 182 of file firebirdResultset.php.
{
return $this->objResult;
}
1.7.1