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

Inheritance: extends MetaModels\DcGeneral\Events\BaseSubscriber
Mostra file Open project: metamodels/core

Public Methods

Method Description
decodeAttributeIdValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent $event ) : void Translates an attribute id to a generated alias {@see getAttributeNames()}.
encodeAttributeIdValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent $event ) : void Translates an generated alias {@see getAttributeNames()} to the corresponding attribute id.
generatePasteButton ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPasteButtonEvent $event ) : void Generate the paste button.
getAttributeIdOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void Prepares a option list with alias => name connection for all attributes.
getDefaultIdOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void Provide options for default selection.
getMetaModel ( ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model ) : MetaModels\IMetaModel Retrieve the MetaModel attached to the model filter setting.
getTemplateOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void Provide options for default selection.
getTypeOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void Provide options for default selection.

Protected Methods

Method Description
cleanDefaultIdOptions ( array $options, boolean $onlyUsed, array $count ) : array Ensure that all options have a value.
registerEventsInDispatcher ( ) : void Register all listeners to handle creation of a data container.
registerModelRenderers ( ) : void Register the events for rendering a model.

Method Details

cleanDefaultIdOptions() protected method

Ensure that all options have a value.
protected cleanDefaultIdOptions ( array $options, boolean $onlyUsed, array $count ) : array
$options array The options to be cleaned.
$onlyUsed boolean Determines if only "used" values shall be returned.
$count array Array for the counted values.
return array

decodeAttributeIdValue() public method

Translates an attribute id to a generated alias {@see getAttributeNames()}.
public decodeAttributeIdValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent The event.
return void

encodeAttributeIdValue() public method

Translates an generated alias {@see getAttributeNames()} to the corresponding attribute id.
public encodeAttributeIdValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent The event.
return void

generatePasteButton() public method

Generate the paste button.
public generatePasteButton ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPasteButtonEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPasteButtonEvent The event.
return void

getAttributeIdOptions() public method

This is used in the attr_id select box.
public getAttributeIdOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent The event.
return void

getDefaultIdOptions() public method

Provide options for default selection.
public getDefaultIdOptions ( 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\Data\ModelInterface $model ) : MetaModels\IMetaModel
$model ContaoCommunityAlliance\DcGeneral\Data\ModelInterface The model for which to retrieve the MetaModel.
return MetaModels\IMetaModel

getTemplateOptions() public method

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

getTypeOptions() public method

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

registerEventsInDispatcher() protected method

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

registerModelRenderers() protected method

Register the events for rendering a model.
Deprecation: This is only present to support legacy drawing.
protected registerModelRenderers ( ) : void
return void