/** * deleteAction for Users * * @return void */ public function deleteAction() { if ($this->getRequest()->isPost()) { $del = $this->getRequest()->getPost('del'); if ($del == 'Yes') { $id = $this->getRequest()->getPost('id'); $model = new User_Model_Users(); $model->delete('id = ' . (int) $id); } return $this->_helper->redirector('index'); } else { $id = $this->_getParam('id', 0); if ($id > 0) { $model = new User_Model_Users(); $this->view->user = $model->fetchEntry($id); } } }
/** * Fetch all sql entries for the $role_id * * @return array */ public function fetchUsersActivity($array_id_users) { $model = new User_Model_Users(); foreach ($array_id_users as $key => $value) { $array_user[$key] = $model->fetchEntry($array_id_users[$key]); } return $array_user; }