phpDocumentor

ExportImagesService

Class ExportImagesService

Table of Contents

$changedFiles  : array<string|int, string>
$filesystem  : FilesystemAdapter
$shopBaseUrl  : ShopBaseUrl
__construct()  : mixed
ExportImagesService constructor.
addChangedFiles()  : void
changedFiles()  : array<string|int, string>
moveImageDependenciesToThemeDirectory()  : void
getContentZoneJsonPaths()  : array<string|int, string>
makePathsInColumnsLayoutRelative()  : void
realThemeId()  : string
settingsJsonForTheme()  : array<string|int, stdClass>
updateContentZoneJson()  : void
updateSettingsJson()  : void
updateUrlsInContentZoneJson()  : void
updateUrlsInFieldset()  : void
updateUrlsInOptionValue()  : void
updateUrlsInSettingsJson()  : void
urlForTheme()  : string
urlForWeb()  : string
urlIsLocal()  : bool
webPathToLocalPath()  : string

Properties

Methods

__construct()

ExportImagesService constructor.

public __construct() : mixed
Tags
throws
Exception
Return values
mixed

addChangedFiles()

public addChangedFiles(array<string|int, string> $changedFiles, string $themeId) : void
Parameters
$changedFiles : array<string|int, string>
$themeId : string
Tags
throws
Exception
Return values
void

changedFiles()

public changedFiles() : array<string|int, string>
Return values
array<string|int, string>

moveImageDependenciesToThemeDirectory()

public moveImageDependenciesToThemeDirectory(string $themeId) : void
Parameters
$themeId : string
Tags
throws
Exception
throws
FileNotFoundException
Return values
void

getContentZoneJsonPaths()

protected getContentZoneJsonPaths(string $themeId) : array<string|int, string>
Parameters
$themeId : string
Return values
array<string|int, string>

makePathsInColumnsLayoutRelative()

protected makePathsInColumnsLayoutRelative(stdClass $columnsLayout) : void
Parameters
$columnsLayout : stdClass
Return values
void

realThemeId()

protected realThemeId(string $themeId) : string
Parameters
$themeId : string
Return values
string

settingsJsonForTheme()

protected settingsJsonForTheme(string $themeId) : array<string|int, stdClass>
Parameters
$themeId : string
Tags
throws
FileNotFoundException
Return values
array<string|int, stdClass>

updateContentZoneJson()

protected updateContentZoneJson(stdClass $contentZone, string $path) : void
Parameters
$contentZone : stdClass
$path : string
Tags
throws
FileNotFoundException
Return values
void

updateSettingsJson()

protected updateSettingsJson(array<string|int, mixed> $settings, string $themeId) : void
Parameters
$settings : array<string|int, mixed>
$themeId : string
Tags
throws
FileNotFoundException
Return values
void

updateUrlsInContentZoneJson()

protected updateUrlsInContentZoneJson(string $themeId) : void
Parameters
$themeId : string
Tags
throws
FileNotFoundException
throws
Exception
Return values
void

updateUrlsInFieldset()

protected updateUrlsInFieldset(stdClass $fieldset, string $themeId) : void
Parameters
$fieldset : stdClass
$themeId : string
Tags
throws
Exception
Return values
void

updateUrlsInOptionValue()

protected updateUrlsInOptionValue(stdClass $optionValue, string $themeId) : void
Parameters
$optionValue : stdClass
$themeId : string
Tags
throws
Exception
Return values
void

updateUrlsInSettingsJson()

protected updateUrlsInSettingsJson(string $themeId) : void
Parameters
$themeId : string
Tags
throws
FileNotFoundException
throws
Exception
Return values
void

urlForTheme()

protected urlForTheme(string $url, string $themeId) : string
Parameters
$url : string
$themeId : string
Tags
throws
Exception
Return values
string

urlForWeb()

protected urlForWeb(string $url, string $themeId) : string
Parameters
$url : string
$themeId : string
Tags
throws
Exception
Return values
string

urlIsLocal()

protected urlIsLocal(string $url) : bool
Parameters
$url : string
Tags
throws
Exception
Return values
bool

webPathToLocalPath()

protected webPathToLocalPath(string $path, string $themeId) : string
Parameters
$path : string
$themeId : string
Return values
string

Search results