public function fetchAll()
 {
     $resultSet = $this->getDbTable()->fetchAll();
     $entries = array();
     foreach ($resultSet as $row) {
         $entry = new Application_Model_Access_AccessGroup();
         $entry->setId($row->id)->setName($row->name)->setUsualName($row->usual_name);
         $entries[] = $entry;
     }
     return $entries;
 }
 public function refusedAction()
 {
     $request = $this->getRequest();
     $params = $request->getParams();
     $groupsMapper = new Application_Model_Access_AccessGroupMapper();
     $actualGroup = new Application_Model_Access_AccessGroup();
     $aclMapper = new Application_Model_Access_AccessControlListMapper();
     $session = new Zend_Session_Namespace();
     $groupsMapper->find($session->currentUser['group']['id'], $actualGroup);
     if (!$actualGroup->getName() or !$actualGroup->getId()) {
         $actualGroup = new Application_Model_Access_AccessGroup();
         $actualGroup->setId($groupsMapper->getDefaultUserGroupId())->setName("all");
     }
     $actualAcl = $aclMapper->findRow($actualGroup->getName(), $params['rq_module'], $params['rq_controller'], $params['rq_action']);
     if ($actualAcl == false) {
         $actualAcl = new Application_Model_Access_AccessControlList(0, "admin", $params['rq_module'] . "_" . $params['rq_controller'] . "_" . $params['rq_action'], 0, 0, NULL);
     }
     $this->view->actualAcl = $actualAcl;
     $this->view->actualGroup = $actualGroup;
 }