protected function decodePageParameter($context = '', $inParameters = null)
    {
        if (isset($inParameters['page']) && $inParameters['page'] !== null) {
            return $inParameters['page'];
        } else {
            $param = Pager::makeParameterId($context);
            /* @var $query \Symfony\Component\HttpFoundation\ParameterBag */
            $query = $this->app['request']->query;
            $page = ($query) ? $query->get($param, $query->get('page', 1)) : 1;
        }

        return $page;
    }
protected function decodePageParameter($context = '', $inParameters = null)
    {
        if (isset($inParameters['page']) && $inParameters['page'] !== null) {
            return $inParameters['page'];
        } else {
            $param = Pager::makeParameterId($context);
            /* @var $query \Symfony\Component\HttpFoundation\ParameterBag */
            $query = $this->app['request']->query;
            $page = ($query) ? $query->get($param, $query->get('page', 1)) : 1;
        }

        return $page;
    }
protected function decodePageParameter ( $ context = '' , $ inParameters = null ) { if ( isset ( $ inParameters [ 'page' ] ) && $ inParameters [ 'page' ] !== null ) { return $ inParameters [ 'page' ] ; } else { $ param = Pager :: makeParameterId ( $ context ) ; /* @var $query \Symfony\Component\HttpFoundation\ParameterBag */ $ query = $ this -> app [ 'request' ] -> query ; $ page = ( $ query ) ? $ query -> get ( $ param , $ query -> get ( 'page' , 1 ) ) : 1 ; } return $ page ; }
Decodes contextual page number from current request url if found.

@param string $context      Pager id/name in url which value we find
@param array  $inParameters

@return mixed Page number in context
@deprecated Not used in core anymore
Decodes contextual page number from current request url if found .