Methods
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
Gets the name of the view helper that should be used to render sub elements.
getDefaultElementHelper() : string
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
null
string
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 the wrapper for the label
getLabelWrapper() : string
Ge the wrapper for the template
getTemplateWrapper() : 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
Get the wrapper for the collection
getWrapper() : string
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 collection by iterating through all fieldsets and elements
render(\Zend\Form\ElementInterface $element) : string
Parameters
Returns
string
Only render a template
renderTemplate(\Zend\Form\Element\Collection $collection) : string
Parameters
Returns
string
Sets the name of the view helper that should be used to render sub elements.
setDefaultElementHelper(string $defaultSubHelper) : \Zend\Form\View\Helper\FormCollection
Parameters
$defaultSubHelper
string
The name of the view helper to set.
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 the label-wrapper
The string will be passed through sprintf with the label as single
parameter
This defaults to '<legend>%s</legend>'
setLabelWrapper(string $labelWrapper) : \Zend\Form\View\Helper\self
Parameters
$labelWrapper
string
Returns
\Zend\Form\View\Helper\self
Set the string where the template will be inserted into
setTemplateWrapper(string $templateWrapper) : \Zend\Form\View\Helper\self
This string will be passed through sprintf and has the template as single
parameter
THis defaults to ''
Parameters
$templateWrapper
string
Returns
\Zend\Form\View\Helper\self
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
$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
Set the wrapper for this collection
setWrapper(string $wrapper) : \Zend\Form\View\Helper\self
The string given will be passed through sprintf with the following three
replacements:
- The content of the collection
- The label of the collection. If no label is given this will be an empty
string
- The template span-tag. This might also be an empty string
The preset default is
Parameters
$wrapper
string
Returns
\Zend\Form\View\Helper\self
Get wrapped
shouldWrap() : bool
Retrieve the doctype helper
getDoctypeHelper() : \Zend\View\Helper\Doctype
Inherited
inherited_from |
\Zend\Form\View\Helper\AbstractHelper::getDoctypeHelper() |
Returns
Retrieve the escapeHtmlAttr helper
getEscapeHtmlAttrHelper() : \Zend\View\Helper\EscapeHtmlAttr
Inherited
inherited_from |
\Zend\Form\View\Helper\AbstractHelper::getEscapeHtmlAttrHelper() |
Returns
Retrieve the escapeHtml helper
getEscapeHtmlHelper() : \Zend\View\Helper\EscapeHtml
Inherited
inherited_from |
\Zend\Form\View\Helper\AbstractHelper::getEscapeHtmlHelper() |
Returns
Prepare attributes for rendering
prepareAttributes(array $attributes) : array
Inherited
Ensures appropriate attributes are present (e.g., if "name" is present,
but no "id", sets the latter to the former).
Removes any invalid attributes
inherited_from |
\Zend\Form\View\Helper\AbstractHelper::prepareAttributes() |
Parameters
$attributes
array
Returns
array
Prepare a boolean attribute value
prepareBooleanAttributeValue(string $attribute, mixed $value) : string
Inherited
Prepares the expected representation for the boolean attribute specified.
inherited_from |
\Zend\Form\View\Helper\AbstractHelper::prepareBooleanAttributeValue() |
Parameters
$attribute
string
$value
mixed
Returns
string
Properties
Standard boolean attributes, with expected values for enabling/disabling
$booleanAttributes : array
Inherited
inherited_from |
\Zend\Form\View\Helper\AbstractHelper::$$booleanAttributes |
The name of the default view helper that is used to render sub elements.
$defaultElementHelper : string
$doctypeHelper
$doctypeHelper : \Zend\View\Helper\Doctype
Inherited
inherited_from |
\Zend\Form\View\Helper\AbstractHelper::$$doctypeHelper |
$escapeHtmlAttrHelper
$escapeHtmlAttrHelper : \Zend\View\Helper\EscapeHtmlAttr
Inherited
inherited_from |
\Zend\Form\View\Helper\AbstractHelper::$$escapeHtmlAttrHelper |
$escapeHtmlHelper
$escapeHtmlHelper : \Zend\View\Helper\EscapeHtml
Inherited
inherited_from |
\Zend\Form\View\Helper\AbstractHelper::$$escapeHtmlHelper |
This is the default label-wrapper
$labelWrapper : string
If set to true, collections are automatically wrapped around a fieldset
$shouldWrap : bool
Where shall the template-data be inserted into
$templateWrapper : string
Translatable attributes
$translatableAttributes : array
Inherited
inherited_from |
\Zend\Form\View\Helper\AbstractHelper::$$translatableAttributes |
Translator (optional)
$translator : \Zend\I18n\Translator\TranslatorInterface
Inherited
inherited_from |
\Zend\I18n\View\Helper\AbstractTranslatorHelper::$$translator |
inherited_from |
\Zend\Form\View\Helper\AbstractHelper::$$translator |
Whether translator should be used
$translatorEnabled : bool
Inherited
inherited_from |
\Zend\I18n\View\Helper\AbstractTranslatorHelper::$$translatorEnabled |
inherited_from |
\Zend\Form\View\Helper\AbstractHelper::$$translatorEnabled |
Translator text domain (optional)
$translatorTextDomain : string
Inherited
inherited_from |
\Zend\I18n\View\Helper\AbstractTranslatorHelper::$$translatorTextDomain |
inherited_from |
\Zend\Form\View\Helper\AbstractHelper::$$translatorTextDomain |
Attributes globally valid for all tags
$validGlobalAttributes : array
Inherited
inherited_from |
\Zend\Form\View\Helper\AbstractHelper::$$validGlobalAttributes |
Attributes valid for the tag represented by this helper
$validTagAttributes : array
Inherited
This should be overridden in extending classes
inherited_from |
\Zend\Form\View\Helper\AbstractHelper::$$validTagAttributes |
View object instance
$view : \Zend\View\Renderer\RendererInterface
Inherited
inherited_from |
\Zend\View\Helper\AbstractHelper::$$view |
inherited_from |
\Zend\I18n\View\Helper\AbstractTranslatorHelper::$$view |
inherited_from |
\Zend\Form\View\Helper\AbstractHelper::$$view |
This is the default wrapper that the collection is wrapped into
$wrapper : string