Base functionality for all form view helpers

 Methods

__construct()

__construct() 

Exceptions

\Zend\Form\Exception\ExtensionNotLoadedException if ext/intl is not present

Invoke helper as function

__invoke(\Zend\Form\ElementInterface $element, int $dateType, null | string $locale) : \Zend\Form\View\Helper\FormDateSelect

Proxies to render().

Parameters

$dateType

int

$locale

nullstring

Returns

Create a string of all attribute/value pairs

createAttributesString(array $attributes) : string
Inherited

Escapes all attribute values

inherited_from \Zend\Form\View\Helper\AbstractHelper::createAttributesString()

Parameters

$attributes

array

Returns

string

Get date formatter

getDateType() : int

Returns

int

Get value for doctype

getDoctype() : string
Inherited

inherited_from \Zend\Form\View\Helper\AbstractHelper::getDoctype()

Returns

string

Get character encoding

getEncoding() : string
Inherited

inherited_from \Zend\Form\View\Helper\AbstractHelper::getEncoding()

Returns

string

Get the ID of an element

getId(\Zend\Form\ElementInterface $element) : null | string
Inherited

If no ID attribute present, attempts to use the name attribute. If no name attribute is present, either, returns null.

inherited_from \Zend\Form\View\Helper\AbstractHelper::getId()

Parameters

Returns

nullstring

Get the closing bracket for an inline tag

getInlineClosingBracket() : string
Inherited

Closes as either "/>" for XHTML doctypes or ">" otherwise.

inherited_from \Zend\Form\View\Helper\AbstractHelper::getInlineClosingBracket()

Returns

string

Get locale

getLocale() : string

Returns

string

Retrieve pattern to use for Date rendering

getPattern() : string

Returns

string

Returns translator used in helper

getTranslator() : \Zend\I18n\Translator\TranslatorInterface | null
Inherited

inherited_from \Zend\I18n\View\Helper\AbstractTranslatorHelper::getTranslator()
inherited_from \Zend\Form\View\Helper\AbstractHelper::getTranslator()

Returns

Return the translation text domain

getTranslatorTextDomain() : string
Inherited

inherited_from \Zend\I18n\View\Helper\AbstractTranslatorHelper::getTranslatorTextDomain()
inherited_from \Zend\Form\View\Helper\AbstractHelper::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()
inherited_from \Zend\Form\View\Helper\AbstractHelper::getView()

Returns

Checks if the helper has a translator

hasTranslator() : bool
Inherited

inherited_from \Zend\I18n\View\Helper\AbstractTranslatorHelper::hasTranslator()
inherited_from \Zend\Form\View\Helper\AbstractHelper::hasTranslator()

Returns

bool

Returns whether translator is enabled and should be used

isTranslatorEnabled() : bool
Inherited

inherited_from \Zend\I18n\View\Helper\AbstractTranslatorHelper::isTranslatorEnabled()
inherited_from \Zend\Form\View\Helper\AbstractHelper::isTranslatorEnabled()

Returns

bool

Render a month element that is composed of two selects

render(\Zend\Form\ElementInterface $element) : string

Set date formatter

setDateType(int $dateType) : \Zend\Form\View\Helper\FormDateSelect

Parameters

$dateType

int

Returns

Set value for doctype

setDoctype(string $doctype) : \Zend\Form\View\Helper\AbstractHelper
Inherited

inherited_from \Zend\Form\View\Helper\AbstractHelper::setDoctype()

Parameters

$doctype

string

Returns

Set value for character encoding

setEncoding(string $encoding) : \Zend\Form\View\Helper\AbstractHelper
Inherited

inherited_from \Zend\Form\View\Helper\AbstractHelper::setEncoding()

Parameters

$encoding

string

Returns

Set locale

setLocale(string $locale) : \Zend\Form\View\Helper\FormDateSelect

Parameters

$locale

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()
inherited_from \Zend\Form\View\Helper\AbstractHelper::setTranslator()

Parameters

$translator

\Zend\I18n\Translator\TranslatorInterface

[optional] translator. Default is null, which sets no translator.

$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()
inherited_from \Zend\Form\View\Helper\AbstractHelper::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()
inherited_from \Zend\Form\View\Helper\AbstractHelper::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()
inherited_from \Zend\Form\View\Helper\AbstractHelper::setView()

Parameters

Returns

 Properties