public function paginate($page, $itemsPerPage, $column = '1')
    {
        $count = $this->getCount($column);

        if ($this->isDriver('mysql') || $this->isDriver('sqlite')) {
            // Alter paginator's state
            $this->paginateRaw($count, $page, $itemsPerPage);
        } else {
            throw new RuntimeException('Smart pagination algorithm is currently supported only for MySQL and SQLite');
        }

        return $this;
    }
public function paginate($page, $itemsPerPage, $column = '1')
    {
        $count = $this->getCount($column);

        if ($this->isDriver('mysql') || $this->isDriver('sqlite')) {
            // Alter paginator's state
            $this->paginateRaw($count, $page, $itemsPerPage);
        } else {
            throw new RuntimeException('Smart pagination algorithm is currently supported only for MySQL and SQLite');
        }

        return $this;
    }
public function paginate ( $ page , $ itemsPerPage , $ column = '1' ) { $ count = $ this -> getCount ( $ column ) ; if ( $ this -> isDriver ( 'mysql' ) || $ this -> isDriver ( 'sqlite' ) ) { // Alter paginator's state $ this -> paginateRaw ( $ count , $ page , $ itemsPerPage ) ; } else { throw new RuntimeException ( 'Smart pagination algorithm is currently supported only for MySQL and SQLite' ) ; } return $ this ; }
Automatically paginates result-set

@param integer $page Current page
@param integer $itemsPerPage Items per page to be shown
@param string $column Column to be selected when counting
@throws \RuntimeException If algorithm isn't supported for current driver
@return \Krystal\Db\Sql\Db
Automatically paginates result - set