com\setasign\SetaFramework\View\Helper

FlashMessage Class FlashMessage

File: /SetaFramework/src/View/Helper/FlashMessage.php

ViewHelper for FlashMessages

Class hierarchy

Summary

Properties


Static Methods

init()

public static FlashMessage::init (
\com\setasign\SetaFramework\Di\Di $di,
string $applicationName
): void

Helper method to register the class to the Di

Parameters
$di : \com\setasign\SetaFramework\Di\Di
 
$applicationName : string
 

Methods

__construct()

Constructor

Objects of this need to have a own session.

Your application need to initialize this to the Di if you use this. Use the static init-Method in your application.

Parameters
$session : \com\setasign\SetaFramework\Session\SessionInterface
 

__invoke()

public FlashMessage::__invoke (
string $name
): string

Returns the message belongs to the name

Parameters
$name : string
 

set()

public FlashMessage::set (
string $name,
string $value
): self

Sets a message in the session

Parameters
$name : string
 
$value : string