ThemeService

Implements \ThemeServiceInterface

Class ThemeService

package

Default

Methods

ThemeService constructor.

__construct(\ThemeRepositoryInterface $repository, \CacheControl $cacheControl, \ThemeContentManagerEntryStorage $entryStorage, \CI_DB_query_builder $queryBuilder, \ContentWriteService $contentWriteService) 

Arguments

$cacheControl

\CacheControl

$entryStorage

\ThemeContentManagerEntryStorage

$queryBuilder

\CI_DB_query_builder

$contentWriteService

\ContentWriteService

Activates a theme for the shop.

activateTheme(string $themeName) 
Throws
\Exception

Arguments

$themeName

string

build a temporary theme.

buildTemporaryTheme(\ThemeId $themeId, \ThemeSettingsInterface $settings) : void

Arguments

$themeId

\ThemeId

Clear all theme related cache files

clearCache() 

Get Available themes.

getAvailableThemes(\ThemeDirectoryRootInterface $source) : \ThemeNameCollection

Stores the theme content.

storeAllThemeContent(\ThemeContents $themeContents) 

Arguments

$themeContents

\ThemeContents

Only stores theme content that has an ID and hasnt been stored before.

storeOnlyNewThemeContent(\ThemeContents $themeContents) 

Arguments

$themeContents

\ThemeContents

Stores the theme contents.

storeThemeContent(\ThemeId $themeId, \ThemeContents $themeContents) 
Throws
\Exception

Arguments

$themeId

\ThemeId

$themeContents

\ThemeContents

Properties

repository

repository : \ThemeRepositoryInterface

cacheControl

cacheControl : \CacheControl
var

Type(s)

\CacheControl

entryStorage

entryStorage : \ThemeContentManagerEntryStorage
var

Type(s)

\ThemeContentManagerEntryStorage

queryBuilder

queryBuilder : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

contentWriteService

contentWriteService : \ContentWriteService
var

Type(s)

\ContentWriteService