protected function getMessage() { if (strlen($this->message) > 0) { return $this->message; } return $this->tempDataHandler->getTempData(self::$messageKey); }
/** * Returns an unordered list of error-messages for the form * * @return string */ protected function getErrorMessages() { $messages = $this->tempDataHandler->getTempData(self::$errorMessagesKey); if (empty($messages)) { return ""; } $ret = "<ul>"; foreach ($messages as $errMsg) { $ret .= "<li>{$errMsg}</li>"; } $ret .= "</ul>"; return $ret; }