The palette factory.
deprecated | This class is deprecated for the moment, use the PaletteBuilder instead. |
---|
createLegend(string $name, array|\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $property, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface $_) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface
SuppressWarnings | (PHPMD.ShortVariable) |
---|---|
SuppressWarnings | (PHPMD.UnusedFormalParameter) |
SuppressWarnings | (PHPMD.CamelCaseParameterName) |
string
The name of the legend.
array
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface
A list of properties. Can be multiple arrays and arrays of arrays.
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterface
A list of properties. Can be multiple arrays and arrays of arrays.
createPalette(string $name, array $legend, array $_) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface
SuppressWarnings | (PHPMD.ShortVariable) |
---|---|
SuppressWarnings | (PHPMD.UnusedFormalParameter) |
SuppressWarnings | (PHPMD.CamelCaseParameterName) |
string
The name of the palette, can be omitted (deprecated).
array
A list of legends. Can be multiple arrays and arrays of arrays.
array
A list of legends. Can be multiple arrays and arrays of arrays.
createPaletteCollection(array|\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface $palettes, \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface $_) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteCollectionInterface
SuppressWarnings | (PHPMD.ShortVariable) |
---|---|
SuppressWarnings | (PHPMD.UnusedFormalParameter) |
SuppressWarnings | (PHPMD.CamelCaseParameterName) |
array
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface
A list of palettes. Can be multiple arrays and arrays of arrays.
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface
A list of palettes. Can be multiple arrays and arrays of arrays.
fillLegend(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface $legend, array $properties) : void
array
The properties.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When an invalid property is encountered. |
---|
fillPalette(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface $palette, array $legends) : void
array
The legends.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When an invalid legend has been passed. |
---|
fillPaletteCollection(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteCollection $collection, array $palettes) : void
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteCollection
The collection.
array
The palettes to fill.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When an invalid palette has been passed. |
---|