public function render() {
		$flashMessages = $this->controllerContext->getFlashMessageContainer()->getMessagesAndFlush();
		if (count($flashMessages) > 0) {
			$tagContent = '';
			foreach ($flashMessages as $singleFlashMessage) {

				// set the severity
				$severity = 'alert-info';

				switch ($singleFlashMessage->getSeverity()) {
					case 'Notice':	$severity = 'alert-info';
						break;
					case 'Information':	$severity = 'alert-info';
						break;
					case 'OK':	$severity = 'alert-success';
						break;
					case 'Warning': $severity = 'alert-warning';
						break;
					case 'Error': $severity = 'alert-error';
						break;
				}

				// check if there's a title and use it then
				$title = '';
				if ($singleFlashMessage->getTitle() != '') {
					$title = '<strong>' . $singleFlashMessage->getTitle() . '</strong>&nbsp;';
				}

				// put it all together
				$tagContent .= '<div class="alert ' . $severity . '"><strong>' . $title . '</strong>' .
					$singleFlashMessage->getMessage()  . '</div>';
			}

			$this->tag->setContent($tagContent);
			return $this->tag->render();
		}
		return '';
	}
public function render() {
		$flashMessages = $this->controllerContext->getFlashMessageContainer()->getMessagesAndFlush();
		if (count($flashMessages) > 0) {
			$tagContent = '';
			foreach ($flashMessages as $singleFlashMessage) {

				// set the severity
				$severity = 'alert-info';

				switch ($singleFlashMessage->getSeverity()) {
					case 'Notice':	$severity = 'alert-info';
						break;
					case 'Information':	$severity = 'alert-info';
						break;
					case 'OK':	$severity = 'alert-success';
						break;
					case 'Warning': $severity = 'alert-warning';
						break;
					case 'Error': $severity = 'alert-error';
						break;
				}

				// check if there's a title and use it then
				$title = '';
				if ($singleFlashMessage->getTitle() != '') {
					$title = '<strong>' . $singleFlashMessage->getTitle() . '</strong>&nbsp;';
				}

				// put it all together
				$tagContent .= '<div class="alert ' . $severity . '"><strong>' . $title . '</strong>' .
					$singleFlashMessage->getMessage()  . '</div>';
			}

			$this->tag->setContent($tagContent);
			return $this->tag->render();
		}
		return '';
	}
public function render ( ) { $ flashMessages = $ this -> controllerContext -> getFlashMessageContainer ( ) -> getMessagesAndFlush ( ) ; if ( count ( $ flashMessages ) > 0 ) { $ tagContent = '' ; foreach ( $ flashMessages as $ singleFlashMessage ) { // set the severity $ severity = 'alert-info' ; switch ( $ singleFlashMessage -> getSeverity ( ) ) { case 'Notice' : $ severity = 'alert-info' ; break ; case 'Information' : $ severity = 'alert-info' ; break ; case 'OK' : $ severity = 'alert-success' ; break ; case 'Warning' : $ severity = 'alert-warning' ; break ; case 'Error' : $ severity = 'alert-error' ; break ; } // check if there's a title and use it then $ title = '' ; if ( $ singleFlashMessage -> getTitle ( ) != '' ) { $ title = '<strong>' . $ singleFlashMessage -> getTitle ( ) . '</strong>&nbsp;' ; } // put it all together $ tagContent .= '<div class="alert ' . $ severity . '"><strong>' . $ title . '</strong>' . $ singleFlashMessage -> getMessage ( ) . '</div>' ; } $ this -> tag -> setContent ( $ tagContent ) ; return $ this -> tag -> render ( ) ; } return '' ; }
Render method.

@return string rendered Flash Messages, if there are any.
@author Sebastian Kurfürst <sebastian@typo3.org>
@author Mario Rimann <mario@rimann.org>
Render method .