Skip to main content

Grid

Helper for grid


Properties

helperName

protected static string $helperName
  • This property is static.

allowedOptions

protected static $allowedOptions
  • This property is static.

Methods

renderGroupContainer

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

Parameters:

ParameterTypeDescription
$contentstring
$optionsAndAttributesiterable
$escapebool

Inherited 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

Parameters:

ParameterTypeDescription
$itemKeymixed
$itemSpecmixed
$attributesiterable
$optionsiterable
$escapebool

getItemViewHelper

protected getItemViewHelper(): \Laminas\View\Helper\HelperInterface

Throws:

if the view or plugin method is unavailable in the current context

  • LogicException