public static function applyLimit($pageList, $limit = null)
    {
        if (isset($limit)) {
            $pageList = array_slice($pageList, 0, $limit);
        }

        return $pageList;
    }
public static function applyLimit($pageList, $limit = null)
    {
        if (isset($limit)) {
            $pageList = array_slice($pageList, 0, $limit);
        }

        return $pageList;
    }
public static function applyLimit ( $ pageList , $ limit = null ) { if ( isset ( $ limit ) ) { $ pageList = array_slice ( $ pageList , 0 , $ limit ) ; } return $ pageList ; }
Limit method.

@param string $pagelist Pagelist array
@param int    $limit    Limit entries

@return array $pagelist
Limit method .