Omeka_Controller_Action_Helper_FlashMessenger

Package: Controller\ActionHelper

class Omeka_Controller_Action_Helper_FlashMessenger

extends Zend_Controller_Action_Helper_Abstract

FlashMessenger action helper.

Omeka_Controller_Action_Helper_FlashMessenger::__construct()
Omeka_Controller_Action_Helper_FlashMessenger::addMessage($message, $status = null)

addMessage() - Add a message to flash message

Parameters:
  • $message
  • $status
Returns:

Mu_Controller_Action_Helper_FlashMessenger Provides a fluent interface

Omeka_Controller_Action_Helper_FlashMessenger::getMessages()

getMessages() - Get messages

Returns:array
Omeka_Controller_Action_Helper_FlashMessenger::_filterMessages($messages)
Parameters:
  • $messages
Omeka_Controller_Action_Helper_FlashMessenger::clearMessages()

Clear all messages from the previous request & specified status

Returns:bool True if messages were cleared, false if none existed
Omeka_Controller_Action_Helper_FlashMessenger::clearCurrentMessages()

Clear all current messages with specified status

Returns:bool True if messages were cleared, false if none existed
Omeka_Controller_Action_Helper_FlashMessenger::hasMessages()

Whether has messages with a specific status (or any messages, if null).

Omeka_Controller_Action_Helper_FlashMessenger::hasCurrentMessages()
Omeka_Controller_Action_Helper_FlashMessenger::getCurrentMessages($status = null)
Parameters:
  • $status
Omeka_Controller_Action_Helper_FlashMessenger::direct($message, $status = null)

Strategy pattern: proxy to addMessage()

Parameters:
  • $message
  • $status