function getErrorInformation() { if (empty($this->errors) ) return $this->getErrorMessage(); //Save errors $cnv = $this->getConverter(); $result = $this->getSaveErrorMessage(); $result .= "\n<lu>"; forEach($this->errors as $message) $result .= "\n<li>". $cnv->toHtml($message). "</li>"; $result .= "\n</lu>"; return $result; } |