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) |
stringThe name of the legend.
array\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterfaceA list of properties. Can be multiple arrays and arrays of arrays.
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PropertyInterfaceA 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) |
stringThe name of the palette, can be omitted (deprecated).
arrayA list of legends. Can be multiple arrays and arrays of arrays.
arrayA 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\PaletteInterfaceA list of palettes. Can be multiple arrays and arrays of arrays.
\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterfaceA list of palettes. Can be multiple arrays and arrays of arrays.
fillLegend(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\LegendInterface $legend, array $properties) : void
arrayThe properties.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When an invalid property is encountered. |
|---|
fillPalette(\ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\PaletteInterface $palette, array $legends) : void
arrayThe 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\PaletteCollectionThe collection.
arrayThe palettes to fill.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException |
When an invalid palette has been passed. |
|---|