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 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 resultset object. | |
Definition at line 15 of file sybaseResultset.php.
| __construct | ( | $ | result | ) |
Constructor.
public
| mixed | $result | |
| mixed | $connection |
Definition at line 48 of file sybaseResultset.php.
{
$this->objResult = $result;
}
| affected_rows | ( | ) |
Return num of affected rows from insert/delete/update query.
public
Definition at line 59 of file sybaseResultset.php.
{
if ( $this->objResult )
return sybase_affected_rows();
}
| fetch_array | ( | ) |
Return resultset as assoc array.
public
Definition at line 71 of file sybaseResultset.php.
{
if ( $this->objResult )
{
$this->objRecord = sybase_fetch_assoc( $this->objResult );
return ( $this->objRecord !== false );
}
}
| fetch_object | ( | ) |
Return resultset as object.
public
Definition at line 87 of file sybaseResultset.php.
{
if ( $this->objResult )
return sybase_fetch_object( $this->objResult );
}
| fetch_row | ( | ) |
Return resultset as numeric array.
public
Definition at line 99 of file sybaseResultset.php.
{
if ( $this->objResult )
{
$this->objRecord = sybase_fetch_row( $this->objResult );
return ( $this->objRecord !== false );
}
}
| field | ( | $ | field | ) |
Return record from select query.
public
| mixed | $field |
Definition at line 116 of file sybaseResultset.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 132 of file sybaseResultset.php.
{
if ( $this->objResult )
{
sybase_free_result( $this->objResult );
$this->objRecord = array();
$this->objResult = null;
}
}
| num_fields | ( | ) |
Return num fields from select query.
public
Definition at line 148 of file sybaseResultset.php.
{
if ( $this->objResult )
return sybase_num_fields( $this->objResult );
}
| num_rows | ( | ) |
Return num rows from select query.
public
Definition at line 160 of file sybaseResultset.php.
{
if ( $this->objResult )
return sybase_num_rows( $this->objResult );
}
| result | ( | ) |
Return resultset object.
public
Definition at line 172 of file sybaseResultset.php.
{
return $this->objResult;
}
1.7.1