DB\Cursor::skip PHP Method

skip() public method

Map to nth record relative to current cursor position
public skip ( $ofs = 1 ) : mixed
$ofs int
return mixed
    function skip($ofs = 1)
    {
        $this->ptr += $ofs;
        return $this->ptr > -1 && $this->ptr < count($this->query) ? $this->query[$this->ptr] : FALSE;
    }

Usage Example

Exemplo n.º 1
0
 public function skip($ofs = 1)
 {
     $this->reset(false);
     if ($this->mapper->skip($ofs)) {
         return $this;
     } else {
         $this->reset(false);
     }
 }
All Usage Examples Of DB\Cursor::skip