Controller/Action/Helper/FlashMessenger.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Controller
- Subpackage
- Zend_Controller_Action_Helper
\Zend_Controller_Action_Helper_FlashMessenger
Package: Zend_Controller\Zend_Controller_Action_HelperFlash Messenger - implement session-based messages
- Implements
- Parent(s)
- \Zend_Controller_Action_Helper_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
-
- Version
- $Id$
Properties
boolean $_messageAdded = false
static$_messageAdded - Wether a message has been previously added
Default valuefalse
Details- Type
- boolean
array $_messages = array()
static$_messages - Messages from previous request
Default valuearray()
Details- Type
- array
string $_namespace = 'default'
$_namespace - Instance namespace, default is 'default'
Default value'default'
Details- Type
- string
Methods
clearCurrentMessages( $namespace = null) : boolean
clear messages from the current request & current namespace
ParametersName | Type | Description |
---|
$namespace | | |
---|
Returns clearMessages( $namespace = null) : boolean
Clear all messages from the previous request & current namespace
ParametersName | Type | Description |
---|
$namespace | | |
---|
ReturnsType | Description |
---|
boolean | True if messages were cleared, false if none existed |
count( $namespace = null) : int
count() - Complete the countable interface
ParametersName | Type | Description |
---|
$namespace | | |
---|
Returns direct(string $message, $namespace = NULL) : void
Strategy pattern: proxy to addMessage()
ParametersName | Type | Description |
---|
$message | string | |
---|
$namespace | | |
---|
getCurrentMessages( $namespace = null) : array
getCurrentMessages() - get messages that have been added to the current
namespace within this request
ParametersName | Type | Description |
---|
$namespace | | |
---|
Returns getIterator( $namespace = null) : \ArrayObject
getIterator() - complete the IteratorAggregate interface, for iterating
ParametersName | Type | Description |
---|
$namespace | | |
---|
Returns getMessages( $namespace = null) : array
getMessages() - Get messages from a specific namespace
ParametersName | Type | Description |
---|
$namespace | | |
---|
Returns hasCurrentMessages( $namespace = null) : boolean
hasCurrentMessages() - check to see if messages have been added to current
namespace within this request
ParametersName | Type | Description |
---|
$namespace | | |
---|
Returns hasMessages( $namespace = null) : boolean
hasMessages() - Wether a specific namespace has messages
ParametersName | Type | Description |
---|
$namespace | | |
---|
Returns setNamespace(string $namespace = 'default') : \Zend_Controller_Action_Helper_FlashMessenger
setNamespace() - change the namespace messages are added to, useful for
per action controller messaging between requests
ParametersName | Type | Description |
---|
$namespace | string | |
---|
Returns