Skip to main content

FormRowElement


  • Full name: \TwbsHelper\Form\View\Helper\FormRowElement
  • Parent class: FormRow

Properties

inputErrorClass

The class that is added to element that have errors

protected string $inputErrorClass

inputValidClass

The class that is added to element that are valid or have valid feedback

protected string $inputValidClass

Methods

render

public render(\Laminas\Form\ElementInterface $element, string|null $labelPosition = null): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$labelPositionstring|null

getElementRenderingOrder

protected getElementRenderingOrder(\Laminas\Form\ElementInterface $element, ?string $labelPosition = null): array

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$labelPosition?string

renderElement

protected renderElement(\Laminas\Form\ElementInterface $element, mixed $content): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$contentmixed

renderMultiCheckboxCommonParts

protected renderMultiCheckboxCommonParts(\Laminas\Form\ElementInterface $element): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface

prepareElementForRendering

public prepareElementForRendering(\Laminas\Form\ElementInterface $element): mixed

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface

getInputValidClass

The class that is added to element that are valid or have valid feedback

protected getInputValidClass(): string

renderLabel

Render element's label

protected renderLabel(\Laminas\Form\ElementInterface $element, string $elementContent, string $labelPosition = null): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$elementContentstring
$labelPositionstring

renderLayoutContentContainer

protected renderLayoutContentContainer(\Laminas\Form\ElementInterface $element, mixed $content): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$contentmixed

getDefaultLabelPosition

protected getDefaultLabelPosition(\Laminas\Form\ElementInterface $element, mixed $labelPosition = null): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$labelPositionmixed

renderHelpBlock

Render element's help block

protected renderHelpBlock(\Laminas\Form\ElementInterface $element, string $elementContent): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$elementContentstring

renderValidFeedback

Render element's valid feedback

protected renderValidFeedback(\Laminas\Form\ElementInterface $element, string $elementContent): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$elementContentstring

renderAddOn

Render element's add-on

protected renderAddOn(\Laminas\Form\ElementInterface $element, string $elementContent): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$elementContentstring

renderErrors

Render element's errors

protected renderErrors(\Laminas\Form\ElementInterface $element, string $elementContent): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$elementContentstring

renderDedicatedContainer

Render element's dedicated container

protected renderDedicatedContainer(\Laminas\Form\ElementInterface $element, string $elementContent): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$elementContentstring

renderDedicatedContainerForCheckbox

Render element's dedicated container

protected renderDedicatedContainerForCheckbox(\Laminas\Form\ElementInterface $element, string $elementContent): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$elementContentstring

elementIsLayout

protected elementIsLayout(\Laminas\Form\ElementInterface $element, string $layout): mixed

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$layoutstring

elementIsCheckbox

protected elementIsCheckbox(\Laminas\Form\ElementInterface $element): mixed

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface

elementIsMultiCheckbox

protected elementIsMultiCheckbox(\Laminas\Form\ElementInterface $element): mixed

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface

Inherited methods

prepareAttributes

protected prepareAttributes(array $attributes): array

Parameters:

ParameterTypeDescription
$attributesarray

setClassesToElement

protected setClassesToElement(\Laminas\Form\ElementInterface $element, iterable $addClasses = [], iterable $removeClasses = []): \Laminas\Form\ElementInterface

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$addClassesiterable
$removeClassesiterable