Esempio n. 1
0
 /**
  * List action for this controller.
  *
  * @return void
  */
 public function indexAction()
 {
     $dataType = $this->getModuleLoader()->getDataType();
     $selections = $this->selectionRepository->findByDataTypeForCurrentBackendUser($dataType);
     $this->view->assign('selections', $selections);
     $columns = Tca::grid()->getFields();
     $this->view->assign('columns', $columns);
     $this->view->assign('numberOfColumns', count($columns));
 }
Esempio n. 2
0
 /**
  * @param string $dataType
  */
 public function listAction($dataType)
 {
     $selections = $this->selectionRepository->findByDataTypeForCurrentBackendUser($dataType);
     $this->view->assign('selections', $selections);
 }