Esempio n. 1
0
 public function createComponentUsersGrid($name)
 {
     $groupId = $this->getParameter('groupId');
     $grid = new Grid($this, $name);
     $grid->setModel($this->userModel->findAll($groupId));
     $grid->addColumnText('username', 'Užívateľ')->setSortable()->setFilterText();
     $grid->addColumnText('email', 'Email-ová adresa')->setSortable()->setFilterText();
     $grid->addColumnNumber('last_login', 'Posledné prihlásenie')->setSortable();
     $grid->filterRenderType = $this->filterRenderType;
     $grid->hasActions(false);
 }