Ejemplo n.º 1
0
 public function render()
 {
     $template = $this->getTemplate();
     $template->setFile(__DIR__ . '/usersRolesOverview.latte');
     $resultSet = $this->userFacade->fetchRoles($this->roleQuery);
     $template->roles = $resultSet->toArray();
     $template->render();
 }
Ejemplo n.º 2
0
 private function prepareRolesForSelect()
 {
     $roles = $this->userFacade->fetchRoles(new RoleQuery());
     $result = [];
     /** @var Role $role */
     foreach ($roles as $role) {
         $result[$role->getId()] = $role->getName();
     }
     return $result;
 }