ThemeController
extends BasicController
in package
Class ThemeController
Table of Contents
- $previewSettingsService : bool
- $themeExtender : ThemeExtenderService
- $themesList : null
- $deleterService : ThemeDeleterService
- $importThemeService : ImportThemeService
- $requestedTheme : RequestedThemeInterface
- $stringParser : StringParser
- $theme : bool
- $themeService : null
- $uploadThemeService : UploadThemeService
- __clone() : BasicController|void
- __construct() : mixed
- ThemeController constructor.
- createExtendedTheme() : mixed
- delete() : mixed|void
- get() : mixed|void
- patch() : mixed|void
- post() : mixed|void
- Duplicate a theme
- put() : mixed|void
- Save some theme
- requiresAuthentication() : bool
- additionalGoogleFonts() : string
- currentTheme() : CurrentThemeInterface|null
- currentThemeId() : string
- fontManager() : GoogleFontManager
- getImportThemeService() : ImportThemeService
- getStringParser() : StringParser
- getTheme() : ThemeConfiguration
- getThemesList() : ThemeConfigurationCollection
- getUploadThemeService() : UploadThemeService
- importThemeContent() : void
- outputJson() : string
- outputTheme() : string
- outputThemeList() : string
- previewSettingsService() : bool|PreviewSettingsService|mixed|null
- themeService() : bool|StyleEditThemeService
- updateThemeList() : mixed
Properties
$previewSettingsService
protected
bool
$previewSettingsService
$themeExtender
protected
ThemeExtenderService
$themeExtender
$themesList
protected
null
$themesList
$deleterService
private
ThemeDeleterService
$deleterService
$importThemeService
private
ImportThemeService
$importThemeService
$requestedTheme
private
RequestedThemeInterface
$requestedTheme
$stringParser
private
StringParser
$stringParser
$theme
private
bool
$theme
= false
$themeService
private
null
$themeService
$uploadThemeService
private
UploadThemeService
$uploadThemeService
Methods
__clone()
public
__clone() : BasicController|void
Return values
BasicController|void —__construct()
ThemeController constructor.
public
__construct(ThemeExtenderService $themeExtender, ThemeDeleterService $deleterService[, RequestedThemeInterface|null $requestedTheme = null ]) : mixed
Parameters
- $themeExtender : ThemeExtenderService
- $deleterService : ThemeDeleterService
- $requestedTheme : RequestedThemeInterface|null = null
Return values
mixed —createExtendedTheme()
public
createExtendedTheme(ThemeConfiguration $theme, $data) : mixed
Parameters
- $theme : ThemeConfiguration
- $data :
Tags
Return values
mixed —delete()
public
delete(array<string|int, mixed> $uri, $data) : mixed|void
Parameters
Tags
Return values
mixed|void —get()
public
get(array<string|int, mixed> $uri) : mixed|void
Parameters
- $uri : array<string|int, mixed>
Tags
Return values
mixed|void —patch()
public
patch(array<string|int, mixed> $uri, $data) : mixed|void
Parameters
Tags
Return values
mixed|void —post()
Duplicate a theme
public
post(array<string|int, mixed> $uri, $data) : mixed|void
Parameters
Tags
Return values
mixed|void —put()
Save some theme
public
put(array<string|int, mixed> $uri, $data) : mixed|void
Parameters
Tags
Return values
mixed|void —requiresAuthentication()
public
requiresAuthentication() : bool
Return values
bool —additionalGoogleFonts()
protected
additionalGoogleFonts() : string
Return values
string —currentTheme()
protected
currentTheme() : CurrentThemeInterface|null
Tags
Return values
CurrentThemeInterface|null —currentThemeId()
protected
currentThemeId() : string
Tags
Return values
string —fontManager()
protected
fontManager(string $fontUrl) : GoogleFontManager
Parameters
- $fontUrl : string
Return values
GoogleFontManager —getImportThemeService()
protected
getImportThemeService() : ImportThemeService
Tags
Return values
ImportThemeService —getStringParser()
protected
getStringParser() : StringParser
Tags
Return values
StringParser —getTheme()
protected
getTheme( $id) : ThemeConfiguration
Parameters
Tags
Return values
ThemeConfiguration —getThemesList()
protected
getThemesList() : ThemeConfigurationCollection
Tags
Return values
ThemeConfigurationCollection —getUploadThemeService()
protected
getUploadThemeService() : UploadThemeService
Tags
Return values
UploadThemeService —importThemeContent()
protected
importThemeContent( $themeId) : void
Parameters
Tags
Return values
void —outputJson()
protected
outputJson(mixed $value) : string
Parameters
- $value : mixed
Return values
string —outputTheme()
protected
outputTheme() : string
Tags
Return values
string —outputThemeList()
protected
outputThemeList() : string
Tags
Return values
string —previewSettingsService()
protected
previewSettingsService() : bool|PreviewSettingsService|mixed|null
Tags
Return values
bool|PreviewSettingsService|mixed|null —themeService()
protected
themeService() : bool|StyleEditThemeService
Tags
Return values
bool|StyleEditThemeService —updateThemeList()
protected
updateThemeList() : mixed