function setCategoryFilterOption()
 {
     $options = array(ListFilter::FILTER_KEY_ALL => ListFilter::FILTER_LABEL_ALL);
     $options += StatisticCategories::getInstitutionMedicalCenterCategories();
     $this->filterOptions['category'] = array('label' => 'Category', 'selected' => $this->queryParams['category'], 'options' => $options);
 }
コード例 #2
0
 /**
  * @PreAuthorize("hasAnyRole('SUPER_ADMIN', 'CAN_VIEW_STATISTICS')")
  */
 public function institutionMedicalCentersAction()
 {
     return $this->render('AdminBundle:Statistics:institutionMedicalCenters.html.twig', array('statsData' => $this->filteredResult, 'categories' => StatisticCategories::getInstitutionMedicalCenterCategories()));
 }