/** Render individual coroner profile
  * @access public
  * @return void
  * @throws Pas_Exception_Param
  */
 public function profileAction()
 {
     if ($this->getParam('id', false)) {
         $this->view->persons = $this->_coroners->getCoronerDetails($this->getParam('id'));
     } else {
         throw new Pas_Exception_Param($this->_missingParameter, 500);
     }
 }
 /** Delete a coroner
  * @access public
  * @return void
  */
 public function deleteAction()
 {
     if ($this->_request->isPost()) {
         $id = (int) $this->_request->getPost('id');
         $del = $this->_request->getPost('del');
         if ($del == 'Yes' && $id > 0) {
             $where = 'id = ' . $id;
             $this->_coroners->delete($where);
         }
         $this->getFlash()->addMessage('Coroner\'s information deleted!');
         $this->redirect($this->_redirectUrl);
     } else {
         $id = (int) $this->_request->getParam('id');
         if ($id > 0) {
             $this->view->coroner = $this->_coroners->fetchRow('id =' . $id);
         }
     }
 }
 /** Get the coroners data for mapping
  * @access public
  * @return void
  */
 public function coronersAction()
 {
     $data = $this->_coroners->getAll($this->getAllParams());
     $details = $data->setItemCountPerPage(150);
     $this->view->coroners = $details;
 }