Handles the group header formatting.

 Methods

Get the group header.

formatGroupHeader(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model, string $field, int $groupingMode, int $groupingLength) : string

Parameters

$field

string

The grouping field name.

$groupingMode

int

The grouping mode.

$groupingLength

int

The grouping length.

Returns

string

Handle the subscribed event.

handle(\ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetGroupHeaderEvent $event) 
Static

Format the group header by the grouping mode.

formatByGroupingMode(mixed $value, int $groupingMode, int $groupingLength, \ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\PropertyInterface $property, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : string

Parameters

$value

mixed

The given value.

$groupingMode

int

The grouping mode.

$groupingLength

int

The grouping length.

Returns

string

Format the grouping header for a checkbox option.

formatCheckboxOptionLabel(mixed $value, \ContaoCommunityAlliance\Translator\TranslatorInterface $translator) : string

Parameters

$value

mixed

The given value.

Returns

string

Make sure a timestamp is returned.

getTimestamp(int|\DateTime $value) : int

Parameters

$value

int\DateTime

The given date.

Returns

int