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

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

Защищенные свойства (Protected)

Свойство Тип Описание
$metaModelCache MetaModels\IMetaModel[] Map is: [id of render setting] => IMetaModel.

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

Метод Описание
addCondition ( ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $property, ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionInterface $condition ) : void Add a condition to a property.
buildPaletteConditions ( ContaoCommunityAlliance\DcGeneral\Factory\Event\BuildDataDefinitionEvent $event ) : void Build the data definition palettes.
getAttributeOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void Retrieve the options for the attributes.
getLegend ( string $name, ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface $palette, ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface $prevLegend = null ) : ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface Retrieve the legend with the given name.
getProperty ( string $name, ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface $legend ) : ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface Retrieve a property from a legend or create a new one.
getTemplateOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void Provide options for default selection.
modelToLabel ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent $event ) : void Draw the render setting.

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

Метод Описание
buildMetaPaletteConditions ( ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface $palette ) : void Apply conditions for meta palettes of the certain render setting types.
getMetaModel ( ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model ) : MetaModels\IMetaModel Retrieve the MetaModel instance from a render settings model.
registerEventsInDispatcher ( ) : void Register all listeners to handle creation of a data container.

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

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

Add a condition to a property.
public 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.
Результат void

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

Apply conditions for meta palettes of the certain render setting types.
protected buildMetaPaletteConditions ( ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface $palette ) : void
$palette ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface The palette.
Результат void

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

Build the data definition palettes.
public buildPaletteConditions ( ContaoCommunityAlliance\DcGeneral\Factory\Event\BuildDataDefinitionEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Factory\Event\BuildDataDefinitionEvent The event.
Результат void

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

Retrieve the options for the attributes.
public getAttributeOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent The event.
Результат void

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

Retrieve the legend with the given name.
public getLegend ( string $name, ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface $palette, ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface $prevLegend = null ) : ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface
$name string Name of the legend.
$palette ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface The palette.
$prevLegend ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface The previous legend.
Результат ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface

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

Retrieve the MetaModel instance from a render settings model.
protected getMetaModel ( ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model ) : MetaModels\IMetaModel
$model ContaoCommunityAlliance\DcGeneral\Data\ModelInterface The model to fetch the MetaModel instance for.
Результат MetaModels\IMetaModel

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

Retrieve a property from a legend or create a new one.
public getProperty ( string $name, ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface $legend ) : ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface
$name string The legend name.
$legend ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface The legend instance.
Результат ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface

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

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

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

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

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

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

Описание свойств

$metaModelCache защищенное свойство

Map is: [id of render setting] => IMetaModel.
protected IMetaModel[],MetaModels $metaModelCache
Результат MetaModels\IMetaModel[]