public function processEvent(CController $controller, User $notify_user = null)
{
if ($this->getApplicationStatus() == self::STATUS_SENT || $this->getProcessWarnings()) {
return false;
}
$success = true;
$template_data = $this->getTemplateData();
$diag = $this->getElement('Element_OphCoTherapyapplication_Therapydiagnosis');
if ($diag->hasLeft() && !$this->processEventForEye($controller, $template_data, Eye::LEFT, $notify_user)) {
$success = false;
}
if ($diag->hasRight() && !$this->processEventForEye($controller, $template_data, Eye::RIGHT, $notify_user)) {
$success = false;
}
return $success;
}