public function getCriteriaForMenuModule(array $archives, Module $module)
    {
        $criteria = new NewsCriteria($this->framework);

        try {
            $criteria->setBasicCriteria($archives, $module->news_order);

            // Set the regular list criteria
            $this->setRegularListCriteria($criteria, $module);
        } catch (NoNewsException $e) {
            return null;
        }

        return $criteria;
    }
public function getCriteriaForMenuModule(array $archives, Module $module)
    {
        $criteria = new NewsCriteria($this->framework);

        try {
            $criteria->setBasicCriteria($archives, $module->news_order);

            // Set the regular list criteria
            $this->setRegularListCriteria($criteria, $module);
        } catch (NoNewsException $e) {
            return null;
        }

        return $criteria;
    }
public function getCriteriaForMenuModule ( array $ archives , Module $ module ) { $ criteria = new NewsCriteria ( $ this -> framework ) ; try { $ criteria -> setBasicCriteria ( $ archives , $ module -> news_order ) ; // Set the regular list criteria $ this -> setRegularListCriteria ( $ criteria , $ module ) ; } catch ( NoNewsException $ e ) { return null ; } return $ criteria ; }
Get the criteria for menu module.

@param array  $archives
@param Module $module

@return NewsCriteria|null
Get the criteria for menu module .