PHP Class ManaPHP\Mvc\View\Flash

Inheritance: extends ManaPHP\Component, implements ManaPHP\Mvc\View\FlashInterface, implements ManaPHP\Mvc\View\Flash\AdapterInterface
Afficher le fichier Open project: manaphp/manaphp Class Usage Examples

Protected Properties

Свойство Type Description
$_cssClasses array

Méthodes publiques

Méthode Description
__construct ( array $cssClasses = [] ) \ManaPHP\Flash constructor
error ( string $message ) : void Shows a HTML error message
notice ( string $message ) : void Shows a HTML notice/information message
output ( boolean $remove = true ) : void Prints the messages in the session flasher
success ( string $message ) : void Shows a HTML success message
warning ( string $message ) : void Shows a HTML warning message

Method Details

__construct() public méthode

\ManaPHP\Flash constructor
public __construct ( array $cssClasses = [] )
$cssClasses array

error() public méthode

$flash->error('This is an error');
public error ( string $message ) : void
$message string
Résultat void

notice() public méthode

$flash->notice('This is an information');
public notice ( string $message ) : void
$message string
Résultat void

output() public méthode

Prints the messages in the session flasher
public output ( boolean $remove = true ) : void
$remove boolean
Résultat void

success() public méthode

$flash->success('The process was finished successfully');
public success ( string $message ) : void
$message string
Résultat void

warning() public méthode

$flash->warning('Hey, this is important');
public warning ( string $message ) : void
$message string
Résultat void

Property Details

$_cssClasses protected_oe property

protected array $_cssClasses
Résultat array