Skip to main content

AbstractGroup

Abstract helper for group rendering


Properties

groupClass

protected static string $groupClass
  • This property is static.

groupTag

protected static string $groupTag
  • This property is static.

allowedOptions

protected static $allowedOptions
  • This property is static.

Methods

__invoke

Render a group

public __invoke(iterable $items, iterable $optionsAndAttributes = [], bool $escape = true): string

Parameters:

ParameterTypeDescription
$itemsiterableArray with the elements of the group
$optionsAndAttributesiterableAttributes for the group tag.
$escapeboolEscape the items.

Return Value:

The group XHTML.


renderGroupContainer

protected renderGroupContainer(string $content, iterable $optionsAndAttributes, bool $escape): string

Parameters:

ParameterTypeDescription
$contentstring
$optionsAndAttributesiterable
$escapebool

prepareAttributes

protected prepareAttributes(iterable $optionsAndAttributes): \TwbsHelper\View\HtmlAttributesSet

Parameters:

ParameterTypeDescription
$optionsAndAttributesiterable

renderGroupItems

protected renderGroupItems(iterable $items, iterable $optionsAndAttributes, bool $escape = true): string

Parameters:

ParameterTypeDescription
$itemsiterable
$optionsAndAttributesiterable
$escapebool

renderGroupItem

protected renderGroupItem(mixed $itemKey, mixed $itemSpec, iterable $attributes, iterable $options, bool $escape): string
  • This method is abstract. Parameters:
ParameterTypeDescription
$itemKeymixed
$itemSpecmixed
$attributesiterable
$optionsiterable
$escapebool