getResultsetCurrentRowIndex example

return $this->rowCount;
    }
    else {
      throw new RowCountException();
    }
  }

  /** * {@inheritdoc} */
  public function fetch($fetch_style = NULL, $cursor_orientation = \PDO::FETCH_ORI_NEXT, $cursor_offset = NULL) {
    $currentKey = $this->getResultsetCurrentRowIndex();

    // We can remove the current record from the prefetched data, before     // moving to the next record.     unset($this->data[$currentKey]);
    $currentKey++;
    if (!isset($this->data[$currentKey])) {
      $this->markResultsetFetchingComplete();
      return FALSE;
    }

    // Now, format the next prefetched record according to the required fetch
Home | Imprint | This part of the site doesn't use cookies.