A property contained within a palette.

 Methods

Create a deep clone of the property.

__clone() : void

Return the name of the property.

getName() : string

Returns

string

Check the conditions, if this property is editable.

isEditable(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface|null $model, \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag $input, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface $legend) : bool

Parameters

$model

\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfacenull

If given, sub palettes will be evaluated depending on the model. If no model is given, all properties will be returned, including sub palette properties.

$input

\ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag

If given, sub palettes will be evaluated depending on the input data. If no model and no input data is given, all properties will be returned, including sub palette properties.

Returns

bool

Check the conditions, if this property is visible.

isVisible(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface|null $model, \ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag $input, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface $legend) : bool

Parameters

$model

\ContaoCommunityAlliance\DcGeneral\Data\ModelInterfacenull

If given, sub palettes will be evaluated depending on the model. If no model is given, all properties will be returned, including sub palette properties.

$input

\ContaoCommunityAlliance\DcGeneral\Data\PropertyValueBag

If given, sub palettes will be evaluated depending on the input data. If no model and no input data is given, all properties will be returned, including sub palette properties.

Returns

bool

Set the editable condition for this property.

setEditableCondition(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\Condition\Property\PropertyConditionInterface $condition) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface

Set the name of the property.

setName(string $name) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface

Parameters

$name

string

The name of the property.

Returns

Set the visible condition for this property.

setVisibleCondition(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\Condition\Property\PropertyConditionInterface $condition) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface