PHP Class MetaModels\DcGeneral\Events\Table\InputScreenSortGroup\Subscriber

Inheritance: extends MetaModels\DcGeneral\Events\BaseSubscriber
Exibir arquivo Open project: metamodels/core

Public Methods

Method Description
decodeAttrValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent $event ) : void Translates an attribute id to a generated alias.
encodeAttrValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent $event ) : void Translates an generated alias to the corresponding attribute id.
getAttrOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void Provide options for attribute type selection.
getMetaModel ( ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment ) : MetaModels\IMetaModel Retrieve the MetaModel attached to the model filter setting.
modelToLabel ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent $event ) : void Draw the render setting.
setVisibility ( ContaoCommunityAlliance\DcGeneral\Factory\Event\BuildDataDefinitionEvent $event ) : void Set the visibility condition for the widget.

Protected Methods

Method Description
addCondition ( ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $property, ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionInterface $condition ) : void Add a visible condition.
registerEventsInDispatcher ( ) : void Register all listeners to handle creation of a data container.

Method Details

addCondition() protected method

Add a visible condition.
protected addCondition ( ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $property, ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionInterface $condition ) : void
$property ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface The property.
$condition ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionInterface The condition to add.
return void

decodeAttrValue() public method

Translates an attribute id to a generated alias.
public decodeAttrValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent The event.
return void

encodeAttrValue() public method

Translates an generated alias to the corresponding attribute id.
public encodeAttrValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent The event.
return void

getAttrOptions() public method

Provide options for attribute type selection.
public getAttrOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent The event.
return void

getMetaModel() public method

Retrieve the MetaModel attached to the model filter setting.
public getMetaModel ( ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment ) : MetaModels\IMetaModel
$environment ContaoCommunityAlliance\DcGeneral\EnvironmentInterface The environment.
return MetaModels\IMetaModel

modelToLabel() public method

Draw the render setting.
public modelToLabel ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent The event.
return void

registerEventsInDispatcher() protected method

Register all listeners to handle creation of a data container.
protected registerEventsInDispatcher ( ) : void
return void

setVisibility() public method

Manipulate the data definition for the property "rendergrouptype" in table "tl_metamodel_dca_sortgroup".
public setVisibility ( ContaoCommunityAlliance\DcGeneral\Factory\Event\BuildDataDefinitionEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Factory\Event\BuildDataDefinitionEvent The event.
return void