ThemeSettings
in package
implements
ThemeSettingsInterface, JsonSerializable
Class ThemeSettings
Interfaces, Classes and Traits
- ThemeSettingsInterface
- Interface ThemeSettingsInterface
- JsonSerializable
Table of Contents
- $active : bool
- $id : string
- $path : mixed
- $themeJson : stdClass
- createFromJsonObject() : ThemeSettingsInterface
- id() : string
- id matches directory name
- isActive() : bool
- jsonSerialize() : mixed
- Specify data which should be serialized to JSON
- path() : string
- setActive() : void
- __construct() : mixed
- ThemeSettings constructor.
Properties
$active
protected
bool
$active
$id
protected
string
$id
$path
protected
mixed
$path
$themeJson
protected
stdClass
$themeJson
Methods
createFromJsonObject()
public
static createFromJsonObject(stdClass $json, string $path) : ThemeSettingsInterface
Parameters
- $json : stdClass
- $path : string
Return values
ThemeSettingsInterface —id()
id matches directory name
public
id() : string
Return values
string —isActive()
public
isActive() : bool
Return values
bool —jsonSerialize()
Specify data which should be serialized to JSON
public
jsonSerialize() : mixed
Tags
Return values
mixed —data which can be serialized by json_encode, which is a value of any type other than a resource.
path()
public
path() : string
Return values
string —setActive()
public
setActive(bool $isActive) : void
Parameters
- $isActive : bool
Return values
void —__construct()
ThemeSettings constructor.
protected
__construct(stdClass $themeJson, string $path) : mixed
Parameters
- $themeJson : stdClass
- $path : string