components/Pagination.php
public function get($iPage, $iCount)
    {
        if ($iCount < 1) {
            return null;
        }

        $iPage = (int) trim($iPage);

        //Check page value
        if ($iPage < 1) {
            $iPage = 1;
        }

        $this->properties['count_per_page'] = $this->iElementOnPage;

        return PaginationHelper::get($iPage, $iCount, $this->properties);
    }
public function get($iPage, $iCount)
    {
        if ($iCount < 1) {
            return null;
        }

        $iPage = (int) trim($iPage);

        //Check page value
        if ($iPage < 1) {
            $iPage = 1;
        }

        $this->properties['count_per_page'] = $this->iElementOnPage;

        return PaginationHelper::get($iPage, $iCount, $this->properties);
    }
public function get ( $ iPage , $ iCount ) { if ( $ iCount < 1 ) { return null ; } $ iPage = ( int ) trim ( $ iPage ) ; //Check page value if ( $ iPage < 1 ) { $ iPage = 1 ; } $ this -> properties [ 'count_per_page' ] = $ this -> iElementOnPage ; return PaginationHelper :: get ( $ iPage , $ iCount , $ this -> properties ) ; }
Get pagination data
@param int $iPage
@param int $iCount
@return array|null
Get pagination data