Zend\Form\View\Helper\FormRow
Synopsis
class FormRow
extends AbstractHelper
{
- // constants
- const LABEL_APPEND = 'append';
- const LABEL_PREPEND = 'prepend';
- // members
- protected string $inputErrorClass;
- protected array $labelAttributes;
- protected string $labelPosition;
- protected bool $renderErrors;
- protected FormLabel $labelHelper;
- protected FormElement $elementHelper;
- protected FormElementErrors $elementErrorsHelper;
- protected string $partial;
- // Inherited members from AbstractHelper
- protected array $booleanAttributes;
- protected array $translatableAttributes;
- protected Doctype $doctypeHelper;
- protected EscapeHtml $escapeHtmlHelper;
- protected EscapeHtmlAttr $escapeHtmlAttrHelper;
- protected array $validGlobalAttributes;
- protected array $validTagAttributes;
- // Inherited members from AbstractTranslatorHelper
- protected TranslatorInterface $translator;
- protected string $translatorTextDomain;
- protected bool $translatorEnabled;
- // Inherited members from AbstractHelper
- protected RendererInterface $view;
- // methods
- public string|FormRow __invoke()
- public string render()
- public FormRow setInputErrorClass()
- public string getInputErrorClass()
- public FormRow setLabelAttributes()
- public array getLabelAttributes()
- public FormRow setLabelPosition()
- public string getLabelPosition()
- public FormRow setRenderErrors()
- public bool getRenderErrors()
- public FormRow setPartial()
- public null|string getPartial()
- protected FormLabel getLabelHelper()
- protected FormElement getElementHelper()
- protected FormElementErrors getElementErrorsHelper()
- // Inherited methods from AbstractHelper
- public AbstractHelper setDoctype()
- public string getDoctype()
- public AbstractHelper setEncoding()
- public string getEncoding()
- public string createAttributesString()
- public null|string getId()
- public string getInlineClosingBracket()
- protected Doctype getDoctypeHelper()
- protected EscapeHtml getEscapeHtmlHelper()
- protected EscapeHtmlAttr getEscapeHtmlAttrHelper()
- protected array prepareAttributes()
- protected string prepareBooleanAttributeValue()
- // Inherited methods from AbstractTranslatorHelper
- public AbstractTranslatorHelper setTranslator()
- public Translator|null getTranslator()
- public bool hasTranslator()
- public AbstractTranslatorHelper setTranslatorEnabled()
- public bool isTranslatorEnabled()
- public AbstractTranslatorHelper setTranslatorTextDomain()
- public string getTranslatorTextDomain()
- // Inherited methods from AbstractHelper
- public AbstractHelper setView()
- public null|Renderer getView()
Hierarchy
Tasks
Line | Task |
---|---|
228 | Escape event attributes like AbstractHtmlElement view helper does in htmlAttribs ?? |
Constants
Name | Value |
---|---|
LABEL_APPEND | 'append' |
LABEL_PREPEND | 'prepend' |
Members
protected
- $booleanAttributes
—
array
Standard boolean attributes, with expected values for enabling/disabling - $doctypeHelper — Zend\View\Helper\Doctype
- $elementErrorsHelper
—
Zend\Form\View\Helper\FormElementErrors
Form element errors helper instance - $elementHelper
—
Zend\Form\View\Helper\FormElement
Form element helper instance - $escapeHtmlAttrHelper — Zend\View\Helper\EscapeHtmlAttr
- $escapeHtmlHelper — Zend\View\Helper\EscapeHtml
- $inputErrorClass
—
string
The class that is added to element that have errors - $labelAttributes
—
array
The attributes for the row label - $labelHelper
—
Zend\Form\View\Helper\FormLabel
Form label helper instance - $labelPosition
—
string
Where will be label rendered? - $partial — string
- $renderErrors
—
Zend\Form\View\Helper\bool
Are the errors are rendered by this helper? - $translatableAttributes
—
array
Translatable attributes - $translator
—
Zend\I18n\Translator\TranslatorInterface
Translator (optional) - $translatorEnabled
—
Zend\I18n\View\Helper\bool
Whether translator should be used - $translatorTextDomain
—
string
Translator text domain (optional) - $validGlobalAttributes
—
array
Attributes globally valid for all tags - $validTagAttributes
—
array
Attributes valid for the tag represented by this helper - $view
—
Zend\View\Renderer\RendererInterface
View object instance
Methods
protected
- getElementErrorsHelper() — Retrieve the FormElementErrors helper
- getElementHelper() — Retrieve the FormElement helper
- getLabelHelper() — Retrieve the FormLabel helper
public
- __invoke() — Invoke helper as functor
- getInputErrorClass() — Get the class that is added to element that have errors
- getLabelAttributes() — Get the attributes for the row label
- getLabelPosition() — Get the label position
- getPartial() — Retrieve current partial
- getRenderErrors() — Retrieve if the errors are rendered by this helper
- render() — Utility form helper that renders a label (if it exists), an element and errors
- setInputErrorClass() — Set the class that is added to element that have errors
- setLabelAttributes() — Set the attributes for the row label
- setLabelPosition() — Set the label position
- setPartial() — Set a partial view script to use for rendering the row
- setRenderErrors() — Set if the errors are rendered by this helper
Inherited from Zend\Form\View\Helper\AbstractHelper
protected
- getDoctypeHelper() — Retrieve the doctype helper
- getEscapeHtmlAttrHelper() — Retrieve the escapeHtmlAttr helper
- getEscapeHtmlHelper() — Retrieve the escapeHtml helper
- prepareAttributes() — Prepare attributes for rendering
- prepareBooleanAttributeValue() — Prepare a boolean attribute value
public
- createAttributesString() — Create a string of all attribute/value pairs
- getDoctype() — Get value for doctype
- getEncoding() — Get character encoding
- getId() — Get the ID of an element
- getInlineClosingBracket() — Get the closing bracket for an inline tag
- setDoctype() — Set value for doctype
- setEncoding() — Set value for character encoding
Inherited from Zend\I18n\View\Helper\AbstractTranslatorHelper
public
- getTranslator() — Returns translator used in helper
- getTranslatorTextDomain() — Return the translation text domain
- hasTranslator() — Checks if the helper has a translator
- isTranslatorEnabled() — Returns whether translator is enabled and should be used
- setTranslator() — Sets translator to use in helper
- setTranslatorEnabled() — Sets whether translator is enabled and should be used
- setTranslatorTextDomain() — Set translation text domain