addErrorMessage()
addInfoMessage()
addMessage()
addSuccessMessage()
addWarningMessage()
clearCurrentMessages()
clearCurrentMessagesFromContainer()
clearCurrentMessagesFromNamespace()
clearMessages()
clearMessagesFromContainer()
clearMessagesFromNamespace()
count()
getContainer()
getController()
getCurrentErrorMessages()
getCurrentInfoMessages()
getCurrentMessages()
getCurrentMessagesFromNamespace()
getCurrentSuccessMessages()
getCurrentWarningMessages()
getErrorMessages()
getInfoMessages()
getIterator()
getMessages()
getMessagesFromNamespace()
getNamespace()
getSessionManager()
getSuccessMessages()
getWarningMessages()
hasCurrentErrorMessages()
hasCurrentInfoMessages()
hasCurrentMessages()
hasCurrentSuccessMessages()
hasCurrentWarningMessages()
hasErrorMessages()
hasInfoMessages()
hasMessages()
hasSuccessMessages()
hasWarningMessages()
setController()
setNamespace()
setSessionManager()
getMessagesFromContainer()
$container
$controller
$messageAdded
$messages
$namespace
$session
NAMESPACE_DEFAULT
NAMESPACE_ERROR
NAMESPACE_INFO
NAMESPACE_SUCCESS
NAMESPACE_WARNING
Flash Messenger - implement session-based messages
addErrorMessage(string $message) : \Zend\Mvc\Controller\Plugin\FlashMessenger
addInfoMessage(string $message) : \Zend\Mvc\Controller\Plugin\FlashMessenger
addMessage(string $message, null | string $namespace, null | int $hops) : \Zend\Mvc\Controller\Plugin\FlashMessenger
string
nullstring
nullint
\Zend\Mvc\Controller\Plugin\FlashMessenger
Provides a fluent interfaceaddSuccessMessage(string $message) : \Zend\Mvc\Controller\Plugin\FlashMessenger
addWarningMessage(string $message) : \Zend\Mvc\Controller\Plugin\FlashMessenger
clearCurrentMessages(string $namespace) : bool
string
bool
True if current messages were cleared, false if none existed.clearCurrentMessagesFromContainer() : bool
bool
True if current messages were cleared from the container, false if none existed.clearCurrentMessagesFromNamespace(string $namespaceToClear) : bool
string
bool
True if current messages were cleared from the given namespace, false if none existed.clearMessages(string $namespace) : bool
string
bool
True if messages were cleared, false if none existedclearMessagesFromContainer() : bool
bool
True if messages were cleared, false if none existedclearMessagesFromNamespace(string $namespaceToClear) : bool
string
bool
True if messages were cleared, false if none existedcount() : int
int
getController() : null | \Zend\Stdlib\DispatchableInterface
inherited_from | \Zend\Mvc\Controller\Plugin\AbstractPlugin::getController() |
---|
getCurrentErrorMessages() : array
array
getCurrentInfoMessages() : array
array
getCurrentMessages(string $namespace) : array
string
array
getCurrentMessagesFromNamespace(string $namespaceToGet) : array
string
array
getCurrentSuccessMessages() : array
array
getCurrentWarningMessages() : array
array
getErrorMessages() : array
array
getInfoMessages() : array
array
getMessages(string $namespace) : array
string
array
getMessagesFromNamespace(string $namespaceToGet) : array
string
array
getNamespace() : string
string
getSuccessMessages() : array
array
getWarningMessages() : array
array
hasCurrentErrorMessages() : bool
bool
hasCurrentInfoMessages() : bool
bool
hasCurrentMessages(string $namespace) : bool
string
bool
hasCurrentSuccessMessages() : bool
bool
hasCurrentWarningMessages() : bool
bool
hasErrorMessages() : bool
bool
hasInfoMessages() : bool
bool
hasMessages(string $namespace) : bool
string
bool
hasSuccessMessages() : bool
bool
hasWarningMessages() : bool
bool
setController(\Zend\Stdlib\DispatchableInterface $controller) : void
inherited_from | \Zend\Mvc\Controller\Plugin\AbstractPlugin::setController() |
---|
\Zend\Stdlib\DispatchableInterface
setNamespace(string $namespace) : \Zend\Mvc\Controller\Plugin\FlashMessenger
Useful for per action controller messaging between requests
string
\Zend\Mvc\Controller\Plugin\FlashMessenger
Provides a fluent interfacesetSessionManager(\Zend\Session\ManagerInterface $manager) : \Zend\Mvc\Controller\Plugin\FlashMessenger
getMessagesFromContainer() : void
Iterates through the session container, removing messages into the local scope.
$controller : null | \Zend\Stdlib\DispatchableInterface
inherited_from | \Zend\Mvc\Controller\Plugin\AbstractPlugin::$$controller |
---|
$namespace : string
NAMESPACE_DEFAULT
NAMESPACE_ERROR
NAMESPACE_INFO
NAMESPACE_SUCCESS
NAMESPACE_WARNING