ThemeConfigurationFactory
in package
Class ThemeConfigurationFactory
Table of Contents
- $activeTheme : bool
- $baseUrl : ShopBaseUrl
- $imagePathTranslator : ImagePathTranslator
- $languageService : LanguageService
- $languageTranslator : LanguageTranslator
- $styleEditConfiguration : StyleEditConfiguration|null
- $categoryFactory : ConfigurationCategoryFactory
- $configurationService : ConfigurationService
- $theme : SettingsService
- __construct() : mixed
- ThemeConfigurationFactory constructor.
- createExtendedFromJson() : ThemeConfiguration
- Creates a themeConfiguration instance with all the related data
- createFromJson() : ThemeConfiguration
- Simplified ThemeConfiguration for listing purposes
- getAreas() : ConfigurationCategory
- getBasics() : ConfigurationCategory
- getChildren() : array<string|int, mixed>
- getColorPalette() : array<string|int, mixed>
- getGambioThemeIds() : array<string|int, mixed>
- getIsUpdatable() : bool
- getStyles() : ConfigurationCategory
- getAuthor() : mixed
- getIsActive() : bool
- getIsEditable() : bool
- getIsPreview() : bool
- getIsRemovable() : bool
- getThumbnail() : string|null
- getTitle() : string
- getVersion() : mixed
Properties
$activeTheme
protected
bool
$activeTheme
$baseUrl
protected
ShopBaseUrl
$baseUrl
$imagePathTranslator
protected
ImagePathTranslator
$imagePathTranslator
$languageService
protected
LanguageService
$languageService
$languageTranslator
protected
LanguageTranslator
$languageTranslator
$styleEditConfiguration
protected
StyleEditConfiguration|null
$styleEditConfiguration
$categoryFactory
private
ConfigurationCategoryFactory
$categoryFactory
$configurationService
private
ConfigurationService
$configurationService
$theme
private
SettingsService
$theme
Methods
__construct()
ThemeConfigurationFactory constructor.
public
__construct(ShopBaseUrl $baseUrl, LanguageTranslator $themeTranslator, LanguageService $languageService, ImagePathTranslator $imagePathTranslator, StyleEditConfiguration|null $styleEditConfiguration, ActiveThemeInterface $activeTheme, ConfigurationCategoryFactory $categoryFactory, ConfigurationService $configurationService) : mixed
Parameters
- $baseUrl : ShopBaseUrl
- $themeTranslator : LanguageTranslator
- $languageService : LanguageService
- $imagePathTranslator : ImagePathTranslator
- $styleEditConfiguration : StyleEditConfiguration|null
- $activeTheme : ActiveThemeInterface
- $categoryFactory : ConfigurationCategoryFactory
- $configurationService : ConfigurationService
Return values
mixed —createExtendedFromJson()
Creates a themeConfiguration instance with all the related data
public
createExtendedFromJson(stdClass $themeConfig) : ThemeConfiguration
Parameters
- $themeConfig : stdClass
Tags
Return values
ThemeConfiguration —createFromJson()
Simplified ThemeConfiguration for listing purposes
public
createFromJson(stdClass $themeConfig) : ThemeConfiguration
Parameters
- $themeConfig : stdClass
Tags
Return values
ThemeConfiguration —getAreas()
protected
getAreas(stdClass $themeConfig) : ConfigurationCategory
Parameters
- $themeConfig : stdClass
Tags
Return values
ConfigurationCategory —getBasics()
protected
getBasics(stdClass $themeConfig) : ConfigurationCategory
Parameters
- $themeConfig : stdClass
Tags
Return values
ConfigurationCategory —getChildren()
protected
getChildren() : array<string|int, mixed>
Return values
array<string|int, mixed> —getColorPalette()
protected
getColorPalette([array<string|int, mixed> $colorPalette = null ], ConfigurationCollection $configurationCollection) : array<string|int, mixed>
Parameters
- $colorPalette : array<string|int, mixed> = null
- $configurationCollection : ConfigurationCollection
Tags
Return values
array<string|int, mixed> —getGambioThemeIds()
protected
getGambioThemeIds() : array<string|int, mixed>
Return values
array<string|int, mixed> —getIsUpdatable()
protected
getIsUpdatable(stdClass $themeConfig) : bool
Parameters
- $themeConfig : stdClass
Return values
bool —getStyles()
protected
getStyles(stdClass $themeConfig) : ConfigurationCategory
Parameters
- $themeConfig : stdClass
Tags
Return values
ConfigurationCategory —getAuthor()
private
getAuthor(stdClass $themeConfig) : mixed
Parameters
- $themeConfig : stdClass
Return values
mixed —getIsActive()
private
getIsActive(stdClass $themeConfig) : bool
Parameters
- $themeConfig : stdClass
Tags
Return values
bool —getIsEditable()
private
getIsEditable(stdClass $themeConfig) : bool
Parameters
- $themeConfig : stdClass
Tags
Return values
bool —getIsPreview()
private
getIsPreview(stdClass $themeConfig) : bool
Parameters
- $themeConfig : stdClass
Return values
bool —getIsRemovable()
private
getIsRemovable(stdClass $themeConfig) : bool
Parameters
- $themeConfig : stdClass
Tags
Return values
bool —getThumbnail()
private
getThumbnail(stdClass $themeConfig) : string|null
Parameters
- $themeConfig : stdClass
Return values
string|null —getTitle()
private
getTitle(stdClass $themeConfig) : string
Parameters
- $themeConfig : stdClass
Return values
string —getVersion()
private
getVersion(stdClass $themeConfig) : mixed
Parameters
- $themeConfig : stdClass