public function getInfotext() { if ($this->event) { $service = new OphCoTherapyapplication_Processor($this->event); return $service->getApplicationStatus(); } else { return OphCoTherapyapplication_Processor::STATUS_PENDING; } }