コード例 #1
0
 protected function getMessage()
 {
     if (strlen($this->message) > 0) {
         return $this->message;
     }
     return $this->tempDataHandler->getTempData(self::$messageKey);
 }
コード例 #2
0
 /**
  * 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;
 }