Methods
Proxy the flash messenger plugin controller
__call(string $method, array $argv) : mixed
Parameters
$method
string
$argv
array
Returns
mixed
Return whether auto escaping is enabled or disabled
getAutoEscape()
Get the string used to close message representation
getMessageCloseString() : string
Get the string used to separate messages
getMessageSeparatorString() : string
Return the translation text domain
getTranslatorTextDomain() : string
Inherited
inherited_from |
\Zend\I18n\View\Helper\AbstractTranslatorHelper::getTranslatorTextDomain() |
Returns
string
Get the view object
getView() : null | \Zend\View\Renderer\RendererInterface
Inherited
inherited_from |
\Zend\View\Helper\AbstractHelper::getView() |
inherited_from |
\Zend\I18n\View\Helper\AbstractTranslatorHelper::getView() |
Returns
Checks if the helper has a translator
hasTranslator() : bool
Inherited
inherited_from |
\Zend\I18n\View\Helper\AbstractTranslatorHelper::hasTranslator() |
Returns
bool
Returns whether translator is enabled and should be used
isTranslatorEnabled() : bool
Inherited
inherited_from |
\Zend\I18n\View\Helper\AbstractTranslatorHelper::isTranslatorEnabled() |
Returns
bool
Render Messages
render(string $namespace, array $classes, null | bool $autoEscape) : string
Parameters
$namespace
string
$classes
array
$autoEscape
nullbool
Returns
string
Render Current Messages
renderCurrent(string $namespace, array $classes, bool | null $autoEscape) : string
Parameters
$namespace
string
$classes
array
$autoEscape
boolnull
Returns
string
Set whether or not auto escaping should be used
setAutoEscape(bool $autoEscape) : \Zend\View\Helper\self
Parameters
$autoEscape
bool
Returns
\Zend\View\Helper\self
Set the string used to close message representation
setMessageCloseString(string $messageCloseString) : \Zend\View\Helper\FlashMessenger
Parameters
$messageCloseString
string
Returns
Set the string used to separate messages
setMessageSeparatorString(string $messageSeparatorString) : \Zend\View\Helper\FlashMessenger
Parameters
$messageSeparatorString
string
Returns
Sets translator to use in helper
setTranslator(\Zend\I18n\Translator\TranslatorInterface $translator, string $textDomain) : \Zend\I18n\View\Helper\AbstractTranslatorHelper
Inherited
inherited_from |
\Zend\I18n\View\Helper\AbstractTranslatorHelper::setTranslator() |
Parameters
$textDomain
string
[optional] text domain Default is null, which skips setTranslatorTextDomain
Returns
Sets whether translator is enabled and should be used
setTranslatorEnabled(bool $enabled) : \Zend\I18n\View\Helper\AbstractTranslatorHelper
Inherited
inherited_from |
\Zend\I18n\View\Helper\AbstractTranslatorHelper::setTranslatorEnabled() |
Parameters
$enabled
bool
Returns
Set translation text domain
setTranslatorTextDomain(string $textDomain) : \Zend\I18n\View\Helper\AbstractTranslatorHelper
Inherited
inherited_from |
\Zend\I18n\View\Helper\AbstractTranslatorHelper::setTranslatorTextDomain() |
Parameters
$textDomain
string
Returns
Set the View object
setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
Inherited
inherited_from |
\Zend\View\Helper\AbstractHelper::setView() |
inherited_from |
\Zend\I18n\View\Helper\AbstractTranslatorHelper::setView() |
Parameters
Returns
Render Messages
renderMessages(string $namespace, array $messages, array $classes, bool | null $autoEscape) : string
Parameters
$namespace
string
$messages
array
$classes
array
$autoEscape
boolnull
Returns
string
Properties
Flag whether to escape messages
$autoEscape : bool
Default attributes for the open format tag
$classMessages : array
Templates for the open/close/separators for message tags
$messageCloseString : string
$messageSeparatorString
$messageSeparatorString
Whether translator should be used
$translatorEnabled : bool
Inherited
inherited_from |
\Zend\I18n\View\Helper\AbstractTranslatorHelper::$$translatorEnabled |
Translator text domain (optional)
$translatorTextDomain : string
Inherited
inherited_from |
\Zend\I18n\View\Helper\AbstractTranslatorHelper::$$translatorTextDomain |
View object instance
$view : \Zend\View\Renderer\RendererInterface
Inherited
inherited_from |
\Zend\View\Helper\AbstractHelper::$$view |
inherited_from |
\Zend\I18n\View\Helper\AbstractTranslatorHelper::$$view |