ThemeSettings

Implements \Gambio\GX\Services\System\ThemeSettings\ValueObjects\Interfaces\ThemeSettingsInterface, \JsonSerializable

Class ThemeSettings

package

Default

Methods

ThemeSettings constructor.

__construct(\stdClass $themeJson, string $path) 

Arguments

$themeJson

\stdClass

$path

string

createFromJsonObject

createFromJsonObject(\stdClass $json, string $path) : \Gambio\GX\Services\System\ThemeSettings\ValueObjects\Interfaces\ThemeSettingsInterface
static

id matches directory name

id() : string

Response

string

isActive

isActive() : boolean

Response

boolean

Specify data which should be serialized to JSON

jsonSerialize() : mixed
link

https://php.net/manual/en/jsonserializable.jsonserialize.php

since 5.4.0

Response

mixed

data which can be serialized by json_encode, which is a value of any type other than a resource.

path

path() : string

Response

string

setActive

setActive(boolean $isActive) 

Arguments

$isActive

boolean

Properties

themeJson

themeJson : \stdClass
var

Type(s)

\stdClass

id

id : string
var

Type(s)

string

active

active : boolean
var

Type(s)

boolean

path

path : \Gambio\GX\Services\System\ThemeSettings\ValueObjects\string;
var

Type(s)

\Gambio\GX\Services\System\ThemeSettings\ValueObjects\string;