ExportContentZoneJsonService
in package
Class ExportContentZoneJsonService
Table of Contents
- $contentManagerImages : array<string|int, string>
- $contentManagerWidgetIds : array<string|int, string>
- $converter : InfoElementContentToThemeJsonConverterInterface
- $defaultContentManagerEntries : array<string|int, mixed>
- $entries : array<string|int, stdClass>
- $factory : StyleEditInfoElementFactory
- $filesystem : FilesystemAdapter
- $ids : array<string|int, int>
- $reader : ContentReadServiceInterface
- __construct() : mixed
- addContentsToThemeJson() : void
- contentManagerImages() : array<string|int, string>
- resetProductWidgetsProductSelection() : void
- changePathOfContentManagerEntryImages() : StyleEditInfoElementContent|null
- getContentGroupFromWidget() : int
- getContentZoneJsonPaths() : array<string|int, string>
- imagePathInTheme() : string
- requiredContentGroupIds() : array<string|int, int>
- resetProductListWidget() : void
- resetProductWidget() : void
- updateContentZoneJson() : void
- updateThemeJson() : void
Properties
$contentManagerImages
protected
array<string|int, string>
$contentManagerImages
= []
$contentManagerWidgetIds
protected
array<string|int, string>
$contentManagerWidgetIds
= ['text', 'code']
$converter
protected
InfoElementContentToThemeJsonConverterInterface
$converter
$defaultContentManagerEntries
protected
array<string|int, mixed>
$defaultContentManagerEntries
= [1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 14, 30, 61, 62, 63, 64, 65, 66, 67, 68, 69, 82, 198, 199, 3210123, 3300001, 3889891, 3889895, 3889896, 3889897, 3889898, 3889899, 4311000, 4311001, 4311002, 4311003, 4311004, 4311005, 4311006, 4321001, 4321002, 4321003, 4321004, 4321005, 4321006, 4321007]
$entries
protected
array<string|int, stdClass>
$entries
= []
$factory
protected
StyleEditInfoElementFactory
$factory
$filesystem
protected
FilesystemAdapter
$filesystem
$ids
protected
array<string|int, int>
$ids
$reader
protected
ContentReadServiceInterface
$reader
Methods
__construct()
public
__construct() : mixed
Return values
mixed —addContentsToThemeJson()
public
addContentsToThemeJson(string $themeId) : void
Parameters
- $themeId : string
Tags
Return values
void —contentManagerImages()
public
contentManagerImages() : array<string|int, string>
Return values
array<string|int, string> —resetProductWidgetsProductSelection()
public
resetProductWidgetsProductSelection(string $themeId) : void
Parameters
- $themeId : string
Tags
Return values
void —changePathOfContentManagerEntryImages()
protected
changePathOfContentManagerEntryImages(InfoElementContent $infoElement) : StyleEditInfoElementContent|null
Parameters
- $infoElement : InfoElementContent
Tags
Return values
StyleEditInfoElementContent|null —getContentGroupFromWidget()
protected
getContentGroupFromWidget(stdClass $widget) : int
Parameters
- $widget : stdClass
Return values
int —getContentZoneJsonPaths()
protected
getContentZoneJsonPaths(string $themeId) : array<string|int, string>
Parameters
- $themeId : string
Return values
array<string|int, string> —imagePathInTheme()
protected
imagePathInTheme(string $imagePath) : string
Parameters
- $imagePath : string
Return values
string —requiredContentGroupIds()
protected
requiredContentGroupIds(string $themeId) : array<string|int, int>
Parameters
- $themeId : string
Tags
Return values
array<string|int, int> —resetProductListWidget()
protected
resetProductListWidget(stdClass $productListWidget) : void
Parameters
- $productListWidget : stdClass
Return values
void —resetProductWidget()
protected
resetProductWidget(stdClass $productWidget) : void
Parameters
- $productWidget : stdClass
Return values
void —updateContentZoneJson()
protected
updateContentZoneJson(string $json, stdClass $jsonObject) : void
Parameters
- $json : string
- $jsonObject : stdClass
Tags
Return values
void —updateThemeJson()
protected
updateThemeJson(string $themeId) : void
Parameters
- $themeId : string