public function getPager($sql, $page, $num = 0, $params = array())
    {
        $ret   = $this->getLimit($sql, $page, $num + 1, $params, true);
        $count = count($ret);
        $count > $num && array_pop($ret);

        return array(
            'rs'   => $ret,
            'next' => $count > $num ? true : false,
        );
    }
public function getPager($sql, $page, $num = 0, $params = array())
    {
        $ret   = $this->getLimit($sql, $page, $num + 1, $params, true);
        $count = count($ret);
        $count > $num && array_pop($ret);

        return array(
            'rs'   => $ret,
            'next' => $count > $num ? true : false,
        );
    }
public function getPager ( $ sql , $ page , $ num = 0 , $ params = array ( ) ) { $ ret = $ this -> getLimit ( $ sql , $ page , $ num + 1 , $ params , true ) ; $ count = count ( $ ret ) ; $ count > $ num && array_pop ( $ ret ) ; return array ( 'rs' => $ ret , 'next' => $ count > $ num ? true : false , ) ; }
Get result and next assertions

@param       $sql
@param       $page
@param int   $num
@param array $params

@return array
Get result and next assertions