protected function getLimit(array $default_limit = array())
    {
        if (empty($default_limit)) {
            $default_limit = $this->config->get('module_cli_limit', array(0, 100));
        }

        $limit = $this->getParam('l');

        if (!isset($limit) || !is_numeric($limit)) {
            return $default_limit;
        }

        $exploded = explode(',', $limit, 2);

        if (count($exploded) == 1) {
            array_unshift($exploded, 0);
        }

        return $exploded;
    }
protected function getLimit(array $default_limit = array())
    {
        if (empty($default_limit)) {
            $default_limit = $this->config->get('module_cli_limit', array(0, 100));
        }

        $limit = $this->getParam('l');

        if (!isset($limit) || !is_numeric($limit)) {
            return $default_limit;
        }

        $exploded = explode(',', $limit, 2);

        if (count($exploded) == 1) {
            array_unshift($exploded, 0);
        }

        return $exploded;
    }
protected function getLimit ( array $ default_limit = array ( ) ) { if ( empty ( $ default_limit ) ) { $ default_limit = $ this -> config -> get ( 'module_cli_limit' , array ( 0 , 100 ) ) ; } $ limit = $ this -> getParam ( 'l' ) ; if ( ! isset ( $ limit ) || ! is_numeric ( $ limit ) ) { return $ default_limit ; } $ exploded = explode ( ',' , $ limit , 2 ) ; if ( count ( $ exploded ) == 1 ) { array_unshift ( $ exploded , 0 ) ; } return $ exploded ; }
Returns an array of limits form the limit option or a default value
@param array $default_limit
@return array
Returns an array of limits form the limit option or a default value