DBResultSetCountSphinx Class Reference

Result set for Sphinx count queries. More...

Inheritance diagram for DBResultSetCountSphinx:
DBResultSetSphinx IDBResultSet

List of all members.

Public Member Functions

  fetch ()
  Returns row as associative array.

Protected Attributes

  $done = false

Detailed Description

Result set for Sphinx count queries.

Gerd Riesselmann

Definition at line 9 of file dbresultset.count.sphinx.php.

Member Function Documentation

DBResultSetCountSphinx::fetch (  ) 

Returns row as associative array.

array | bool False if no more data is available

Reimplemented from DBResultSetSphinx.

Definition at line 17 of file dbresultset.count.sphinx.php.

00017                                 {
00018                 $ret = false;
00019                 if ($this->result && !$this->done) {
00020                         $ret = array('c' => $this->result['total_found']);
00021                         $this->done = true;
00022                 }
00023                 return $ret;
00024         }

Member Data Documentation

DBResultSetCountSphinx::$done = false [protected]

Definition at line 10 of file dbresultset.count.sphinx.php.

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