/** Delete a vacancy
  * @access public
  * @return void
  */
 public function deleteAction()
 {
     if ($this->_request->isPost()) {
         $id = (int) $this->getParam('id');
         $del = $this->_request->getPost('del');
         if ($del == 'Yes' && $id > 0) {
             $where = 'id = ' . (int) $id;
             $this->_vacancies->delete($where);
             $this->getFlash()->addMessage('Record deleted');
         }
         $this->redirect(self::REDIRECT);
     } else {
         $id = (int) $this->_request->getParam('id');
         if ($id > 0) {
             $this->view->vac = $this->_vacancies->fetchRow('id = ' . $id);
         }
     }
 }
 /** Delete a vacancy
  * @access public
  * @return void
  */
 public function deleteAction()
 {
     if ($this->_request->isPost()) {
         $id = (int) $this->getParam('id');
         $del = $this->_request->getPost('del');
         if ($del == 'Yes' && $id > 0) {
             $where = 'id = ' . (int) $id;
             $this->_vacancies->delete($where);
             $this->getFlash()->addMessage('Vacancy\'s information deleted! This cannot be undone.');
         }
         $this->redirect('/users/vacancies/');
     } else {
         $id = (int) $this->_request->getParam('id');
         if ($id > 0) {
             $this->view->vac = $this->_vacancies->fetchRow('id = ' . $id);
         }
     }
 }