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

Class: MDB_QueryTool_Result_Object

Source Location: /MDB_QueryTool-1.2.0/QueryTool/Result/Object.php

Class Overview

MDB_QueryTool_Result
   |
   --MDB_QueryTool_Result_Object

MDB_QueryTool_Result_Object class


Author(s):

Copyright:

  • 2004-2006 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 136]
MDB_QueryTool_Result_Object class


[ Top ]


Method Detail

MDB_QueryTool_Result_Object (Constructor)   [line 147]

MDB_QueryTool_Result_Object MDB_QueryTool_Result_Object( MDB[2]_Result $result, MDB_QueryTool $qt)

Constructor

Parameters:

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

[ Top ]

fetchRow   [line 164]

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 201]

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 187]

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 224]

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 Mon, 11 Mar 2019 14:55:23 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.