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(); }
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(); }