Пример #1
0
 /**
  * 
  */
 public function printAction()
 {
     $this->_helper->layout()->setLayout('print');
     $id = $this->_getParam('id');
     $registration = $this->_mapper->detail($id);
     $this->view->registration = $registration;
     $this->view->user = Zend_Auth::getInstance()->getIdentity();
     $mapperClient = new Client_Model_Mapper_Client();
     $this->view->non_formal_scholarity = $mapperClient->listScholarity($registration->fk_id_perdata, Register_Model_Mapper_PerTypeScholarity::NON_FORMAL);
     $this->view->formal_scholarity = $mapperClient->listScholarity($registration->fk_id_perdata, Register_Model_Mapper_PerTypeScholarity::FORMAL);
     $this->view->entities = $this->_mapper->listEntities($id);
     $groups = $this->_mapper->groupFormation($id);
     $this->view->groups = $groups;
 }
Пример #2
0
 /**
  * 
  */
 public function fetchRegistrationAction()
 {
     $id = $this->_getParam('id');
     $mapperFeRegistration = new Fefop_Model_Mapper_FERegistration();
     $registration = $mapperFeRegistration->detail($id);
     $data = $registration->toArray();
     $data['fk_id_perdata'] = $data['id_perdata'];
     $data['fk_id_fe_registration'] = $data['id_fe_registration'];
     $data['beneficiary'] = Client_Model_Mapper_Client::buildName($registration);
     $formation = $mapperFeRegistration->groupFormation($id);
     $data['fk_id_scholarity_area'] = $formation['selected']['area'];
     $data['fk_id_profocupationtimor'] = $formation['selected']['occupation'];
     $this->_helper->json($data);
 }