protected function getSearchCriteria($begin, $end)
    {
        try {
            $criteria = System::getContainer()
                ->get('codefog_news_categories.news_criteria_builder')
                ->getCriteriaForArchiveModule($this->news_archives, $begin, $end, $this);
        } catch (CategoryNotFoundException $e) {
            throw new PageNotFoundException($e->getMessage());
        }

        return $criteria;
    }
protected function getSearchCriteria($begin, $end)
    {
        try {
            $criteria = System::getContainer()
                ->get('codefog_news_categories.news_criteria_builder')
                ->getCriteriaForArchiveModule($this->news_archives, $begin, $end, $this);
        } catch (CategoryNotFoundException $e) {
            throw new PageNotFoundException($e->getMessage());
        }

        return $criteria;
    }
protected function getSearchCriteria ( $ begin , $ end ) { try { $ criteria = System :: getContainer ( ) -> get ( 'codefog_news_categories.news_criteria_builder' ) -> getCriteriaForArchiveModule ( $ this -> news_archives , $ begin , $ end , $ this ) ; } catch ( CategoryNotFoundException $ e ) { throw new PageNotFoundException ( $ e -> getMessage ( ) ) ; } return $ criteria ; }
Get the search criteria

@param int $begin
@param int $end

@return NewsCriteria|null

@throws PageNotFoundException
Get the search criteria