PHP 클래스 Neos\Flow\Mvc\FlashMessageContainer

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$messages array

공개 메소드들

메소드 설명
addMessage ( Neos\Error\Messages\Message $message ) : void Add a flash message object.
flush ( string $severity = null ) : void Remove messages from this container.
getMessages ( string $severity = null ) : array Returns all currently stored flash messages.
getMessagesAndFlush ( string $severity = null ) : array Get all flash messages (with given severity) currently available and remove them from the container.

메소드 상세

addMessage() 공개 메소드

Add a flash message object.
public addMessage ( Neos\Error\Messages\Message $message ) : void
$message Neos\Error\Messages\Message
리턴 void

flush() 공개 메소드

Remove messages from this container.
public flush ( string $severity = null ) : void
$severity string severity of messages (from Message::SEVERITY_* constants) to remove.
리턴 void

getMessages() 공개 메소드

Returns all currently stored flash messages.
public getMessages ( string $severity = null ) : array
$severity string severity of messages (from Message::SEVERITY_* constants) to return.
리턴 array

getMessagesAndFlush() 공개 메소드

Get all flash messages (with given severity) currently available and remove them from the container.
public getMessagesAndFlush ( string $severity = null ) : array
$severity string severity of the messages (One of the Message::SEVERITY_* constants)
리턴 array

프로퍼티 상세

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

protected array $messages
리턴 array