PHP 클래스 MetaModels\DcGeneral\Events\Table\RenderSetting\Subscriber

상속: extends MetaModels\DcGeneral\Events\BaseSubscriber
파일 보기 프로젝트 열기: metamodels/core

보호된 프로퍼티들

프로퍼티 타입 설명
$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[]