Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Flash Messenger - implement session-based messages
boolean $_messageAdded = 'false'$_messageAdded - Wether a message has been previously added
Detailsarray $_messages = 'array'$_messages - Messages from previous request
Detailsstring $_namespace = 'default'$_namespace - Instance namespace, default is 'default'
DetailsZend_Session $_session = 'null'$_session - Zend_Session storage object
Details__construct(
)
:
void__construct() - Instance constructor, needed to get iterators, etc
DetailsaddMessage(
string $message
)
:
Zend_Controller_Action_Helper_FlashMessengeraddMessage() - Add a message to flash message
DetailsclearCurrentMessages(
)
:
booleanclear messages from the current request & current namespace
DetailsclearMessages(
)
:
booleanClear all messages from the previous request & current namespace
Detailscount(
)
:
intcount() - Complete the countable interface
Detailsdirect(
string $message
)
:
voidStrategy pattern: proxy to addMessage()
DetailsgetCurrentMessages(
)
:
arraygetCurrentMessages() - get messages that have been added to the current namespace within this request
DetailsgetIterator(
)
:
ArrayObjectgetIterator() - complete the IteratorAggregate interface, for iterating
DetailsgetMessages(
)
:
arraygetMessages() - Get messages from a specific namespace
DetailshasCurrentMessages(
)
:
booleanhasCurrentMessages() - check to see if messages have been added to current namespace within this request
DetailshasMessages(
)
:
booleanhasMessages() - Wether a specific namespace has messages
DetailspostDispatch(
)
:
Zend_Controller_Action_Helper_FlashMessengerpostDispatch() - runs after action is dispatched, in this case, it is resetting the namespace in case we have forwarded to a different action, Flashmessage will be 'clean' (default namespace)
DetailsresetNamespace(
)
:
Zend_Controller_Action_Helper_FlashMessengerresetNamespace() - reset the namespace to the default
DetailssetNamespace(
string $namespace
=
default
)
:
Zend_Controller_Action_Helper_FlashMessengersetNamespace() - change the namespace messages are added to, useful for per action controller messaging between requests
Details