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

Inheritance: extends MetaModels\DcGeneral\Events\BaseSubscriber
ファイルを表示 Open project: metamodels/core

Public Methods

Method Description
buildLegendTitleWidget ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\BuildWidgetEvent $event ) : void Generate the widget.
buildPaletteRestrictions ( ContaoCommunityAlliance\DcGeneral\Factory\Event\BuildDataDefinitionEvent $event ) : void Build the data definition palettes.
decodeLegendTitleValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent $event ) : void Decode the title value.
encodeLegendTitleValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent $event ) : void Encode the title value.
getAttributeOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void Retrieve the options for the attributes.
getRichTextEditorOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void Retrieve the options for rich text editor configuration.
getWizardForTlClass ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ManipulateWidgetEvent $event ) : void Build the wizard string.
handleModelToLabel ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent $event ) : void Render an attribute or legend.

Protected Methods

Method Description
addCondition ( ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $property, ContaoCommunityAlliance\DcGeneral\DataDefinition\ConditionInterface $condition ) : void Add a condition to a property.
drawAttribute ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent $event ) : void Draw the input screen setting.
drawLegend ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent $event ) : void Draw a legend.
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.
getMetaModelFromModel ( ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model ) : MetaModels\IMetaModel Retrieve the MetaModel the given model is attached to.
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.
registerEventsInDispatcher ( ) : void Register all listeners to handle creation of a data container.

Method Details

addCondition() protected method

Add a condition to a property.
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

buildLegendTitleWidget() public method

Generate the widget.
public buildLegendTitleWidget ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\BuildWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\BuildWidgetEvent The event.
return void

buildPaletteRestrictions() public method

Build the data definition palettes.
public buildPaletteRestrictions ( ContaoCommunityAlliance\DcGeneral\Factory\Event\BuildDataDefinitionEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Factory\Event\BuildDataDefinitionEvent The event.
return void

decodeLegendTitleValue() public method

Decode the title value.
public decodeLegendTitleValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\DecodePropertyValueForWidgetEvent The event.
return void

drawAttribute() protected method

Draw the input screen setting.
protected drawAttribute ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent The event.
return void

drawLegend() protected method

Draw a legend.
protected drawLegend ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ModelToLabelEvent The event.
return void

encodeLegendTitleValue() public method

Encode the title value.
public encodeLegendTitleValue ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\EncodePropertyValueFromWidgetEvent The event.
return void

getAttributeOptions() public method

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.
return void

getLegend() protected method

Retrieve the legend with the given name.
protected 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.
return ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface

getMetaModelFromModel() protected method

Retrieve the MetaModel the given model is attached to.
protected getMetaModelFromModel ( ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model ) : MetaModels\IMetaModel
$model ContaoCommunityAlliance\DcGeneral\Data\ModelInterface The input screen model for which to retrieve the MetaModel.
return MetaModels\IMetaModel

getProperty() protected method

Retrieve a property from a legend or create a new one.
protected 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.
return ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface

getRichTextEditorOptions() public method

Retrieve the options for rich text editor configuration.
public getRichTextEditorOptions ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetPropertyOptionsEvent The event.
return void

getWizardForTlClass() public method

Build the wizard string.
public getWizardForTlClass ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ManipulateWidgetEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ManipulateWidgetEvent The event.
return void

handleModelToLabel() public method

Render an attribute or legend.
public handleModelToLabel ( 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