Exemple #1
0
 /**
  * Seek the resultset to a certain index.
  *
  * @param integer $offset Offset to seek to.
  */
 protected function jumpTo($offset)
 {
     if ($offset != $this->row_pointer) {
         if ($this->offsetExists($offset)) {
             $this->result->data_seek($offset);
         }
         $this->row_pointer = $offset;
     }
 }
Exemple #2
0
 /**
  * Internal method to seek to a specific row in a result resource
  *
  * @param Integer $offset The offset to seek to
  * @return Array Returns the field values
  */
 public function seek($offset)
 {
     $this->result->data_seek($offset);
 }
Exemple #3
0
 /**
  * Adjust resultId pointer to the selected row
  * 
  * @access private
  * @since 2.3
  * @param int $offset Must be between zero and the total number of rows minus one
  * @return bool true on success or false on failure
  */
 function _dataSeek($offset = 0)
 {
     return $this->resultId->data_seek($offset);
 }
Exemple #4
0
 /**
  * Seeks to the given position in the result.
  *
  * @param  integer $index
  * @return boolean
  */
 public function dataSeek($index = 0)
 {
     return $this->_result->data_seek($index);
 }