public function paginate($limit)
    {
        $capsule = $this->_database->getCapsule();
        $this->_model = $capsule->table($this->table);
        $paginator = new Pagination();
        $paginator->setLimit($limit)->setModel($this, $this->_model);

        return $paginator->paginate();
    }
public function paginate($limit)
    {
        $capsule = $this->_database->getCapsule();
        $this->_model = $capsule->table($this->table);
        $paginator = new Pagination();
        $paginator->setLimit($limit)->setModel($this, $this->_model);

        return $paginator->paginate();
    }
public function paginate ( $ limit ) { $ capsule = $ this -> _database -> getCapsule ( ) ; $ this -> _model = $ capsule -> table ( $ this -> table ) ; $ paginator = new Pagination ( ) ; $ paginator -> setLimit ( $ limit ) -> setModel ( $ this , $ this -> _model ) ; return $ paginator -> paginate ( ) ; }
Does like all, but creates pagination for results.

@param int $limit - The number of results to limit by

@return \Scara\Pagination\Pagination
Does like all but creates pagination for results .