public function getIssueStatusForDisplay()
{
if ($this->is_draft) {
return $this->event->info ? $this->event->info : 'Draft';
}
return 'Issued';
}
/** * Generate the text display of the status of the CVI * * @param Element_OphCoCvi_ClinicalInfo $clinical * @param Element_OphCoCvi_EventInfo $info * @return string */ protected function getDisplayStatus(Element_OphCoCvi_ClinicalInfo $clinical = null, Element_OphCoCvi_EventInfo $info) { return ($clinical ? $clinical->getDisplayStatus() : "Not Assessed") . ' (' . $info->getIssueStatusForDisplay() . ')'; }