/** Get the data to render * @access private * @return string */ private function _getData() { $html = ''; if (in_array($this->_getRole(), $this->getAllowed())) { $audit = new FindSpotsAudit(); $auditdata = $audit->getChanges($thos->getId()); if ($auditdata) { $html .= '<h5>Find spot data audit</h5>'; $html .= '<ul id="related">'; $html .= $this->parseArray($auditdata); $html .= '</ul>'; return $html; } else { $html .= self::NOTHING; } return $html; } }
public function ChangesFindSpot($id) { if (in_array($this->_getRole(), $this->_allowed)) { $audit = new FindSpotsAudit(); $auditdata = $audit->getChanges($id); if ($auditdata) { $html = '<h5>Find spot data audit</h5>'; $html .= '<ul id="related">'; foreach ($auditdata as $a) { $html .= $this->buildHtml($a); } $html .= '</ul>'; return $html; } else { return false; } } }
/** Get a findspot overlay from the audit table * */ public function fsauditAction() { $audit = new FindSpotsAudit(); $this->view->audit = $audit->getChange($this->_getParam('id')); }