Example #1
0
 /**
  * 
  */
 public function listAppointmentRowsAction()
 {
     $this->_helper->layout()->disableLayout();
     $id = $this->_getParam('id');
     $mapperAppointment = new Client_Model_Mapper_Appointment();
     $this->view->rows = $mapperAppointment->listAppointments($id);
 }
Example #2
0
 /**
  *
  * @return array
  */
 protected function _validateAppointment()
 {
     $mapperAppointment = new Client_Model_Mapper_Appointment();
     $appointments = $mapperAppointment->listAppointments($this->_data->id_action_plan);
     $return = array('msg' => 'IHA AUDIENSIA ?', 'valid' => true);
     if ($appointments->count() < 1) {
         $return['valid'] = false;
     }
     return $return;
 }