ORM::offset PHP Method

offset() public method

Add an OFFSET to the query
public offset ( $offset )
    public function offset($offset)
    {
        $this->_offset = $offset;
        return $this;
    }

Usage Example

コード例 #1
0
ファイル: form.php プロジェクト: Azuka/Kohana-ORMForm
 /**
  * Prevent negative offsets in MySQL
  * @param int $offset
  * @return $this
  * @chainable
  */
 public function offset($offset)
 {
     if ($offset < 0) {
         $offset = 0;
     }
     return parent::offset($offset);
 }
ORM