original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Get the criteria for menu module.
  
  @param array  $archives
  @param Module $module
  
  @return NewsCriteria|null
docstring_tokens: Get the criteria for menu module .