code/model/behavior/paginatable.php
public function getPaginator()
    {
        $paginator = new ModelPaginator(array(
            'offset' => (int)$this->getState()->offset,
            'limit'  => (int)$this->getState()->limit,
            'total'  => (int)$this->count(),
        ));

        return $paginator;
    }
public function getPaginator()
    {
        $paginator = new ModelPaginator(array(
            'offset' => (int)$this->getState()->offset,
            'limit'  => (int)$this->getState()->limit,
            'total'  => (int)$this->count(),
        ));

        return $paginator;
    }
public function getPaginator ( ) { $ paginator = new ModelPaginator ( array ( 'offset' => ( int ) $ this -> getState ( ) -> offset , 'limit' => ( int ) $ this -> getState ( ) -> limit , 'total' => ( int ) $ this -> count ( ) , ) ) ; return $ paginator ; }
Get the model paginator object

@return  ModelPaginator  The model paginator object
Get the model paginator object