Messenger

Controller plugin for implementing session-based messages.
extends Zend\Mvc\Controller\Plugin\AbstractPlugin
Methods Summary
public
# __construct( )
Construct the messenger controller plugin.
public
# add( string $type , string $message )
Add a message by type.
public
# addError( string $message )
Add an error message.
public
# addErrors( array $messages )
Add multiple errors at once. This method accepts arbitrarily-deeply nested arrays of messages.
public
# addFormErrors( Zend\Form\Fieldset $formOrFieldset )
Add form errors.
public
# addSuccess( string $message )
Add a success message.
public
# addWarning( string $message )
Add a warning message.
public
# addNotice( string $message )
Add a notice message.
public
# get( )
Get all messages.
public
# clear( )
Clear all messages.
Methods inherited from Zend\Mvc\Controller\Plugin\AbstractPlugin
setController(), getController()
Constants Summary
public int ERROR
# 0
public int SUCCESS
# 1
public int WARNING
# 2
public int NOTICE
# 3
Properties Summary
protected Zend\Session\Container $container
# NULL
Properties inherited from Zend\Mvc\Controller\Plugin\AbstractPlugin
$controller