phpDocumentor

ThemeConfigurationFactory

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

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

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
throws
Exception
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

getAuthor()

private getAuthor(stdClass $themeConfig) : mixed
Parameters
$themeConfig : stdClass
Return values
mixed

getIsActive()

private getIsActive(stdClass $themeConfig) : bool
Parameters
$themeConfig : stdClass
Tags
throws
Exception
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
throws
Exception
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
Return values
mixed

Search results