phpDocumentor

ConvertSettingsToDefaultValueThemeExtensions
in package

Class ConvertSettingsToDefaultValueThemeExtensions

Table of Contents

GROUP_PROPERTIES  = ['background-gradient' => ['enabled' => '-enabled', 'color1' => '-color1', 'color2' => '-color2', 'gradientType' => '-type', 'angle' => '-angle'], 'background-image' => ['enabled' => '-enabled', 'url' => '-url', 'position' => '-position', 'repeat' => '-repeat', 'size' => '-size', 'attachment' => '-attachment'], 'border' => ['top' => '-top', 'right' => '-right', 'bottom' => '-bottom', 'left' => '-left', 'style' => '-style', 'color' => '-color'], 'font' => ['family' => '-family', 'color' => '-color', 'size' => '-size', 'style' => '-style', 'textAlign' => '-text-align', 'textDecorationUnderline' => '-text-decoration-underline', 'textTransformUppercase' => '-text-transform-uppercase', 'enableCustomization' => '-enable-customization'], 'margin' => ['top' => '-top', 'right' => '-right', 'bottom' => '-bottom', 'left' => '-left'], 'padding' => ['top' => '-top', 'right' => '-right', 'bottom' => '-bottom', 'left' => '-left']]
OPTION_GROUPS  = ['background', 'background-gradient', 'background-image', 'border', 'font', 'margin', 'padding']
$overwrites  : array<string|int, mixed>
$settings  : array<string|int, mixed>|array<string|int, stdClass>
$themeJson  : stdClass
__construct()  : mixed
ConvertSettingsToDefaultValueThemeExtensions constructor.
convert()  : array<string|int, stdClass>
getOptionValue()  : mixed
getOptionValuesGroup()  : stdClass|null
loopThroughCategories()  : void
mapSettingsArray()  : void
setOptionValues()  : void

Constants

GROUP_PROPERTIES

protected mixed GROUP_PROPERTIES = ['background-gradient' => ['enabled' => '-enabled', 'color1' => '-color1', 'color2' => '-color2', 'gradientType' => '-type', 'angle' => '-angle'], 'background-image' => ['enabled' => '-enabled', 'url' => '-url', 'position' => '-position', 'repeat' => '-repeat', 'size' => '-size', 'attachment' => '-attachment'], 'border' => ['top' => '-top', 'right' => '-right', 'bottom' => '-bottom', 'left' => '-left', 'style' => '-style', 'color' => '-color'], 'font' => ['family' => '-family', 'color' => '-color', 'size' => '-size', 'style' => '-style', 'textAlign' => '-text-align', 'textDecorationUnderline' => '-text-decoration-underline', 'textTransformUppercase' => '-text-transform-uppercase', 'enableCustomization' => '-enable-customization'], 'margin' => ['top' => '-top', 'right' => '-right', 'bottom' => '-bottom', 'left' => '-left'], 'padding' => ['top' => '-top', 'right' => '-right', 'bottom' => '-bottom', 'left' => '-left']]

Properties

Methods

__construct()

ConvertSettingsToDefaultValueThemeExtensions constructor.

public __construct(stdClass $themeJson, array<string|int, stdClass$settings) : mixed
Parameters
$themeJson : stdClass
$settings : array<string|int, stdClass>
Tags
throws
InvalidArgumentException
throws
RuntimeException
Return values
mixed

mapSettingsArray()

protected mapSettingsArray(array<string|int, mixed> $settings) : void
Parameters
$settings : array<string|int, mixed>
Tags
throws
InvalidArgumentException
throws
RuntimeException
Return values
void

Search results