Helper to proxy the plugin flash messenger.
More...
|
| renderMessages ($namespace= 'default', array $messages=[], array $classes=[], $autoEscape=null) |
| Render Messages.
|
|
| getEscapeHtmlHelper () |
| Retrieve the escapeHtml helper.
|
|
Helper to proxy the plugin flash messenger.
Duck-types against Zend.
- Deprecated:
- This helper will be removed in version 3.0 of this component. At that time, it will be available in zendframework/zend-mvc-plugin-flashmessenger.
__call |
( |
|
$method, |
|
|
|
$argv |
|
) |
| |
Proxy the flash messenger plugin controller.
- Parameters
-
- Returns
- mixed
__invoke |
( |
|
$namespace = null | ) |
|
Returns the flash messenger plugin controller.
- Parameters
-
- Returns
- FlashMessenger|V2PluginFlashMessenger|PluginFlashMessenger
Return whether auto escaping is enabled or disabled.
return bool
getMessageCloseString |
( |
| ) |
|
Get the string used to close message representation.
- Returns
- string
Get the formatted string used to open message representation.
- Returns
- string
getMessageSeparatorString |
( |
| ) |
|
Get the string used to separate messages.
- Returns
- string
getPluginFlashMessenger |
( |
| ) |
|
Get the flash messenger plugin.
- Returns
- V2PluginFlashMessenger|PluginFlashMessenger
render |
( |
|
$namespace = 'default' , |
|
|
array |
$classes = [] , |
|
|
|
$autoEscape = null |
|
) |
| |
Render Messages.
- Parameters
-
string | $namespace | |
array | $classes | |
null | bool | $autoEscape | |
- Returns
- string
renderCurrent |
( |
|
$namespace = 'default' , |
|
|
array |
$classes = [] , |
|
|
|
$autoEscape = null |
|
) |
| |
Render Current Messages.
- Parameters
-
string | $namespace | |
array | $classes | |
bool | null | $autoEscape | |
- Returns
- string
renderMessages |
( |
|
$namespace = 'default' , |
|
|
array |
$messages = [] , |
|
|
array |
$classes = [] , |
|
|
|
$autoEscape = null |
|
) |
| |
|
protected |
Render Messages.
- Parameters
-
string | $namespace | |
array | $messages | |
array | $classes | |
bool | null | $autoEscape | |
- Returns
- string
setAutoEscape |
( |
|
$autoEscape = true | ) |
|
Set whether or not auto escaping should be used.
- Parameters
-
- Returns
- self
setMessageCloseString |
( |
|
$messageCloseString | ) |
|
Set the string used to close message representation.
- Parameters
-
string | $messageCloseString | |
- Returns
- FlashMessenger
setMessageOpenFormat |
( |
|
$messageOpenFormat | ) |
|
Set the formatted string used to open message representation.
- Parameters
-
- Returns
- FlashMessenger
setMessageSeparatorString |
( |
|
$messageSeparatorString | ) |
|
Set the string used to separate messages.
- Parameters
-
string | $messageSeparatorString | |
- Returns
- FlashMessenger
setPluginFlashMessenger |
( |
|
$pluginFlashMessenger | ) |
|
Set the flash messenger plugin.
- Parameters
-
V2PluginFlashMessenger | PluginFlashMessenger | $pluginFlashMessenger | |
- Returns
- FlashMessenger
- Exceptions
-
InvalidArgumentException | for an invalid $pluginFlashMessenger |
$messageCloseString = '</li></ul>' |
|
protected |
$messageOpenFormat = '<ul%s><li>' |
|
protected |
$messageSeparatorString = '</li><li>' |
|
protected |