PHP 클래스 Neos\FluidAdaptor\ViewHelpers\FlashMessagesViewHelper

= Examples =
  • Some Default Message
  • Some Warning Message
Depending on the FlashMessages
  • Default Message
  • Some notice message

    With message title
{flashMessage.code}
{flashMessage}
1013
Some Warning Message.
상속: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractTagBasedViewHelper
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$tagName string

공개 메소드들

메소드 설명
initializeArguments ( ) : void Initialize arguments
render ( string $as = null, string $severity = null ) : string Renders flash messages that have been added to the FlashMessageContainer in previous request(s).

보호된 메소드들

메소드 설명
renderAsList ( array $flashMessages ) : string Render the flash messages as unsorted list. This is triggered if no "as" argument is given to the ViewHelper.
renderFromTemplate ( array $flashMessages, string $as ) : string Defer the rendering of Flash Messages to the template. In this case, the flash messages are stored in the template inside the variable specified in "as".

메소드 상세

initializeArguments() 공개 메소드

Initialize arguments
public initializeArguments ( ) : void
리턴 void

render() 공개 메소드

Renders flash messages that have been added to the FlashMessageContainer in previous request(s).
public render ( string $as = null, string $severity = null ) : string
$as string The name of the current flashMessage variable for rendering inside
$severity string severity of the messages (One of the \Neos\Error\Messages\Message::SEVERITY_* constants)
리턴 string rendered Flash Messages, if there are any.

renderAsList() 보호된 메소드

Render the flash messages as unsorted list. This is triggered if no "as" argument is given to the ViewHelper.
protected renderAsList ( array $flashMessages ) : string
$flashMessages array
리턴 string

renderFromTemplate() 보호된 메소드

Defer the rendering of Flash Messages to the template. In this case, the flash messages are stored in the template inside the variable specified in "as".
protected renderFromTemplate ( array $flashMessages, string $as ) : string
$flashMessages array
$as string
리턴 string

프로퍼티 상세

$tagName 보호되어 있는 프로퍼티

protected string $tagName
리턴 string