Esempio n. 1
0
 public function viewXmlAction()
 {
     $personId = (int) $this->_getParam('personId');
     $visitId = (int) $this->_getParam('visitId');
     $providerId = (int) Zend_Auth::getInstance()->getIdentity()->personId;
     $ccd = new CCD(true);
     $contents = $ccd->populate($personId, $providerId, $visitId);
     header('Content-Type: text/xml;');
     $this->view->contents = $contents;
     $this->render();
 }
Esempio n. 2
0
 public function printAction()
 {
     $personId = (int) $this->_getParam('personId');
     $visitId = (int) $this->_getParam('visitId');
     $providerId = (int) Zend_Auth::getInstance()->getIdentity()->personId;
     $auditType = $visitId > 0 ? GenericAccessAudit::CCD_VISIT_PRINT : GenericAccessAudit::CCD_ALL_PRINT;
     $this->_createAudit($providerId, $personId, $visitId, $auditType);
     $ccd = new CCD(true);
     $contents = $ccd->populate($personId, $providerId, $visitId);
     header('Content-Type: text/xml;');
     $this->view->contents = $contents;
     $this->render();
 }