/** * */ public function sameNameAction() { $this->_helper->layout()->disableLayout(); $id = $this->_getParam('id'); $this->view->client = $this->_mapper->fetchRow($id); $this->view->flag = $this->_getParam('flag'); $this->view->document = $this->_mapper->getEleitoralDocument($id); }
/** * */ public function competenciesAction() { $this->_helper->layout()->disableLayout(); // Form Competencies $formCompetencies = $this->_initForm('competencies'); $id = $this->_getParam('id'); $client = $this->_getParam('client'); $data['fk_id_fefpstudentclass'] = $id; $data['fk_id_perdata'] = $client; $dbStudentResult = App_Model_DbTable_Factory::get('FEFEPStudentClass_has_PerData'); $row = $dbStudentResult->fetchRow(array('fk_id_fefpstudentclass = ?' => $id, 'fk_id_perdata = ?' => $client)); if (!empty($row) && !empty($row->date_drop_out)) { $data['date_drop_out'] = $this->view->date($row->date_drop_out); $formCompetencies->getElement('date_drop_out')->setAttrib('disabled', null); } $formCompetencies->populate($data); $mapperClient = new Client_Model_Mapper_Client(); $this->view->form = $formCompetencies; $this->view->competency = $this->_mapper->listCompetencyClass($id, $client); $this->view->client = $mapperClient->fetchRow($client); $this->view->optionsStatus = array(StudentClass_Model_Mapper_StudentClass::ENROLLED => $this->view->nomenclature()->resultClass(StudentClass_Model_Mapper_StudentClass::ENROLLED), StudentClass_Model_Mapper_StudentClass::DROPPED_OUT => $this->view->nomenclature()->resultClass(StudentClass_Model_Mapper_StudentClass::DROPPED_OUT), StudentClass_Model_Mapper_StudentClass::COMPLETED => $this->view->nomenclature()->resultClass(StudentClass_Model_Mapper_StudentClass::COMPLETED), StudentClass_Model_Mapper_StudentClass::GRADUATED => $this->view->nomenclature()->resultClass(StudentClass_Model_Mapper_StudentClass::GRADUATED), StudentClass_Model_Mapper_StudentClass::NO_MANDATORY => $this->view->nomenclature()->resultClass(StudentClass_Model_Mapper_StudentClass::NO_MANDATORY)); }