PHP Класс MetaModels\DcGeneral\Events\Table\InputScreenCondition\Subscriber

Наследование: extends MetaModels\DcGeneral\Events\BaseSubscriber
Показать файл Открыть проект

Открытые методы

Метод Описание
decodeAttributeValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent $event ) : void Translates an attribute id to a generated alias.
decodeValueValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent $event ) : void Translates an value to a generated alias to allow numeric values.
encodeAttributeValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent $event ) : void Translates an generated alias to the corresponding attribute id.
encodeValueValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent $event ) : void Translates an generated alias to the corresponding value.
generatePasteButton ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPasteButtonEvent $event ) : void Generate the paste button.
getAttributeOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void Prepares an option list with alias => name connection for all attributes.
getLabelText ( ContaoCommunityAlliance\Translator\TranslatorInterface $translator, string $type ) : string Retrieve the label text for a condition setting or the default one.
getMetaModel ( ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $interface ) : MetaModels\IMetaModel Retrieve the MetaModel attached to the model condition setting.
getTypeOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void Provide options for property condition types.
getValueOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void Provide options for the values contained within a certain attribute.
handleModelToLabel ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent $event ) : void Render the html for the input screen condition.
setValueOptionsMultiple ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ManipulateWidgetEvent $event ) : void Set the the value select to multiple.

Защищенные методы

Метод Описание
registerEventsInDispatcher ( ) : void Register all listeners to handle creation of a data container.

Приватные методы

Метод Описание
getOptionsViaDcGeneral ( MetaModels\IMetaModel $metaModel, ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment, MetaModels\Attribute\IAttribute $attribute ) : array Obtain the values of a property within a dc-general instance.

Описание методов

decodeAttributeValue() публичный Метод

Translates an attribute id to a generated alias.
public decodeAttributeValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent The event.
Результат void

decodeValueValue() публичный Метод

Translates an value to a generated alias to allow numeric values.
public decodeValueValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent The event.
Результат void

encodeAttributeValue() публичный Метод

Translates an generated alias to the corresponding attribute id.
public encodeAttributeValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent The event.
Результат void

encodeValueValue() публичный Метод

Translates an generated alias to the corresponding value.
public encodeValueValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent The event.
Результат void

generatePasteButton() публичный Метод

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.
Результат void

getAttributeOptions() публичный Метод

This is used in the attr_id select box.
public getAttributeOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent The event.
Результат void

getLabelText() публичный Метод

Retrieve the label text for a condition setting or the default one.
public getLabelText ( ContaoCommunityAlliance\Translator\TranslatorInterface $translator, string $type ) : string
$translator ContaoCommunityAlliance\Translator\TranslatorInterface The environment in use.
$type string The type of the element.
Результат string

getMetaModel() публичный Метод

Retrieve the MetaModel attached to the model condition setting.
public getMetaModel ( ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $interface ) : MetaModels\IMetaModel
$interface ContaoCommunityAlliance\DcGeneral\EnvironmentInterface The environment.
Результат MetaModels\IMetaModel

getTypeOptions() публичный Метод

Provide options for property condition types.
public getTypeOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent The event.
Результат void

getValueOptions() публичный Метод

The values get prefixed with 'value_' to ensure numeric values are kept intact.
public getValueOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent The event.
Результат void

handleModelToLabel() публичный Метод

Render the html for the input screen condition.
public handleModelToLabel ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent The event.
Результат void

registerEventsInDispatcher() защищенный Метод

Register all listeners to handle creation of a data container.
protected registerEventsInDispatcher ( ) : void
Результат void

setValueOptionsMultiple() публичный Метод

Set the the value select to multiple.
public setValueOptionsMultiple ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ManipulateWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ManipulateWidgetEvent The event.
Результат void