AnewtDatabaseResultSetMySQLOld Class Reference

MySQL database result set. More...

List of all members.

Public Member Functions

 __construct ($sql, $connection_handle, $result_set_handle)
 Construct a new AnewtDatabaseResultSet instance (internal use).
 fetch_one ()
 Return the next row.
 free ()
 Free resources associated with this result set.

Protected Member Functions

 obtain_field_types ()
 Deduce the data types in this result set.
 cast_row (&$row)
 Cast a row of data into native PHP data types.

Private Attributes

 $freed = false
 Whether the result set has been freed.


Detailed Description

MySQL database result set.

See also:
AnewtDatabaseResultSet

Definition at line 161 of file backend-mysql-old.lib.php.


Constructor & Destructor Documentation

AnewtDatabaseResultSetMySQLOld::__construct ( sql,
connection_handle,
result_set_handle 
)

Construct a new AnewtDatabaseResultSet instance (internal use).

Do not call this method directly; it is for internal use only.

(Note to backend implementors: you should override this constructor, call into the parent, and then store the n_rows and n_rows_affected values)

Parameters:
$sql The SQL query for this result set
$connection_handle The internal connection handle
$result_set_handle The internal result set handle
See also:
AnewtDatabaseConnection::prepare

Reimplemented from AnewtDatabaseResultSet.

Definition at line 172 of file backend-mysql-old.lib.php.


Member Function Documentation

AnewtDatabaseResultSetMySQLOld::fetch_one (  ) 

Return the next row.

Returns:
An associative array containing all fields of the next result row from the result set.
See also:
AnewtDatabaseResultSet::fetch_all

AnewtDatabaseResultSet::fetch_many

Reimplemented from AnewtDatabaseResultSet.

Definition at line 184 of file backend-mysql-old.lib.php.

AnewtDatabaseResultSetMySQLOld::free (  ) 

Free resources associated with this result set.

You cannot use any methods on the result set instance anymore after calling this method.

Reimplemented from AnewtDatabaseResultSet.

Definition at line 204 of file backend-mysql-old.lib.php.

AnewtDatabaseResultSetMySQLOld::obtain_field_types (  )  [protected]

Deduce the data types in this result set.

This method should be implemented in backends to perform automatic type conversion.

Reimplemented from AnewtDatabaseResultSet.

Definition at line 216 of file backend-mysql-old.lib.php.

AnewtDatabaseResultSetMySQLOld::cast_row ( &$  row  )  [protected]

Cast a row of data into native PHP data types.

This method should be implemented in backends to perform automatic type conversion.

Note that the array is modified in-place (and no result is returned).

Parameters:
$row A row of data.

Reimplemented from AnewtDatabaseResultSet.

Definition at line 226 of file backend-mysql-old.lib.php.


The documentation for this class was generated from the following file:

Generated on Sun Aug 2 22:54:37 2009 for Anewt by  doxygen 1.5.9