creole.drivers.mysql
[ class tree: creole.drivers.mysql ] [ index: creole.drivers.mysql ] [ all elements ]

Class: MySQLResultSet

Source Location: /creole/drivers/mysql/MySQLResultSet.php

Class Overview

ResultSetCommon
   |
   --MySQLResultSet

MySQL implementation of ResultSet class.


Author(s):

Version:

  • $Revision: 1.22 $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 36]
MySQL implementation of ResultSet class.

MySQL supports OFFSET / LIMIT natively; this means that no adjustments or checking are performed. We will assume that if the lmitSQL() operation failed that an exception was thrown, and that OFFSET/LIMIT will never be emulated for MySQL.




Tags:

version:  $Revision: 1.22 $
author:  Hans Lellelid <hans@xmpl.org>


[ Top ]


Class Methods


method close [line 94]

void close( )



Tags:



[ Top ]

method getRecordCount [line 82]

void getRecordCount( )



Tags:



[ Top ]

method getString [line 105]

void getString( mixed $column)

Get string version of column.

No rtrim() necessary for MySQL, as this happens natively.




Tags:

access:  public
see:  ResultSet::getString()


Overrides ResultSetCommon::getString() (parent method not documented)

[ Top ]

method getTimestamp [line 119]

string getTimestamp( mixed $column, [mixed $format = 'Y-m-d H:i:s'])

Returns a unix epoch timestamp based on either a TIMESTAMP or DATETIME field.



Tags:

throws:  SQLException - If the column specified is not a valid key in current field array.


Overrides ResultSetCommon::getTimestamp() (parent method not documented)

Parameters:

mixed   $column   Column name (string) or index (int) starting with 1.

[ Top ]

method next [line 55]

void next( )



Tags:

access:  public
see:  ResultSet::next()


[ Top ]

method seek [line 41]

void seek( mixed $rownum)



Tags:

access:  public
see:  ResultSet::seek()


[ Top ]


Documentation generated on Mon, 23 Aug 2004 21:51:55 -0400 by phpDocumentor 1.3.0RC3