Helper class that provides static methods used in views.

 Methods

Retrieve the currently active sorting.

getCurrentSorting(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\GroupAndSortingDefinitionInterface
Static

Retrieve the currently active grouping mode.

getGroupingMode(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment) : array | null
Static

Parameters

Returns

arraynull

{@inheritDoc}

getManualSortingProperty(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment) 
Static

Parameters

$environment

Get for a field the readable value.

getReadableFieldValue(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\PropertyInterface $property, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : mixed
Static

Parameters

$model

\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface

The model from which the property value shall be retrieved from.

Returns

mixed

Initialize the sorting from the panel. Fallback to default sorting if nothing given.

initializeSorting(\ContaoCommunityAlliance\DcGeneral\Panel\PanelContainerInterface $panel, \ContaoCommunityAlliance\DcGeneral\Data\ConfigInterface $dataConfig, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\ListingConfigInterface $listingConfig) : void
Static

Redirects to the real back end module.

redirectHome(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment) : void
Static

Parameters