MDB_QueryTool
[ class tree: MDB_QueryTool ] [ index: MDB_QueryTool ] [ all elements ]

Class: MDB_QueryTool_Result_Object

Source Location: /MDB_QueryTool-1.2.3/MDB/QueryTool/Result/Object.php

Class Overview

MDB_QueryTool_Result
   |
   --MDB_QueryTool_Result_Object

MDB_QueryTool_Result_Object class


Author(s):

Copyright:

  • 2004-2007 Roman Dostovalov

Methods


Inherited Variables

Inherited Methods

Class: MDB_QueryTool_Result

MDB_QueryTool_Result::MDB_QueryTool_Result()
create a new instance of result with the data returned by the query
MDB_QueryTool_Result::fetchRow()
This function emulates PEAR_MDB fetchRow() method.
MDB_QueryTool_Result::getCount()
return the number of rows returned
MDB_QueryTool_Result::getData()
get all the data returned
MDB_QueryTool_Result::getFirst()
get the first result set we are not using next, current, and reset, since those ignore keys which are empty or 0
MDB_QueryTool_Result::getNext()
Get next result set. If getFirst() has never been called before, it calls that method.
MDB_QueryTool_Result::hasMore()
check if there are other rows
MDB_QueryTool_Result::numRows()
return the number of rows returned. This is an alias for getCount().
MDB_QueryTool_Result::_returnRowOrValue()
Check if the row is a single value with a numeric index.

Class Details

[line 139]
MDB_QueryTool_Result_Object class


[ Top ]


Method Detail

MDB_QueryTool_Result_Object (Constructor)   [line 151]

MDB_QueryTool_Result_Object MDB_QueryTool_Result_Object( object $result, object $qt)

Constructor

Parameters:

object   $result     MDB[2]_Result
object   $qt     MDB_QueryTool instance

[ Top ]

fetchRow   [line 168]

void fetchRow( )

This function emulates PEAR::MDB fetchRow() method With this function MDB_QueryTool can transparently replace PEAR::MDB
  • Todo: implement fetchmode support?
  • Access: public

Overrides MDB_QueryTool_Result::fetchRow() (This function emulates PEAR_MDB fetchRow() method.)
[ Top ]

getFirst   [line 205]

mixed getFirst( )

get the first result set
  • Access: public

Overrides MDB_QueryTool_Result::getFirst() (get the first result set we are not using next, current, and reset, since those ignore keys which are empty or 0)
[ Top ]

getNext   [line 191]

void getNext( )

Alias for fetchRow()
  • Access: public

Overrides MDB_QueryTool_Result::getNext() (Get next result set. If getFirst() has never been called before, it calls that method.)
[ Top ]

hasMore   [line 228]

boolean hasMore( )

check if there are other rows
  • Access: public

Overrides MDB_QueryTool_Result::hasMore() (check if there are other rows)
[ Top ]


Documentation generated on Wed, 11 Apr 2012 22:30:04 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.