Example #1
0
 /**
  * 
  */
 public function listNoteRowsAction()
 {
     $this->_helper->layout()->disableLayout();
     $id = $this->_getParam('id');
     $mapperNote = new Client_Model_Mapper_CaseNote();
     $this->view->rows = $mapperNote->listNotes($id);
     $this->view->logged_user = Zend_Auth::getInstance()->getIdentity()->id_sysuser;
 }
Example #2
0
 /**
  *
  * @return array
  */
 protected function _validateCaseNote()
 {
     $mapperCaseNote = new Client_Model_Mapper_CaseNote();
     $caseNotes = $mapperCaseNote->listNotes($this->_data->id_action_plan);
     $return = array('msg' => 'IHA NOTA KAZU IHA KAZU ?', 'valid' => true);
     if ($caseNotes->count() < 1) {
         $return['valid'] = false;
     }
     return $return;
 }