class ThemeEntity implements ThemeEntityInterface

ThemeEntity는 하나의 테마에 대한 정보를 가지고 있는 클래스이다.

XpressEngine에 등록된 테마들의 정보를 ThemeEntity로 생성하여 처리한다.

Properties

protected string $id
protected AbstractTheme $class
protected AbstractTheme $object
protected ConfigEntity $config

Methods

__construct(string $id, string $class)

ThemeEntity constructor.

string
getId()

get theme id

string
getClass()

get class name of theme

mixed
getTitle()

get theme title

string
getDescription()

get theme's description

mixed
getScreenshot()

get screenshot of theme

null|string
getSettingsURI()

get theme setting page url

bool
supportDesktop()

테마가 desktop 버전을 지원하는지 조사한다.

bool
supportMobile()

테마가 mobile 버전을 지원하는지 조사한다.

getObject()

get object of theme

mixed
__call(string $method, array $arguments)

ThemeEntity에서 제공하지 않는 메소드일 경우 이 entity가 저장하고 있는 theme의 method를 호출한다.

string
toJson(int $options)

Convert the object to its JSON representation.

array
toArray()

Get the instance as an array.

string
render()

Get the evaluated contents of the object.

View|void
renderSetting(ConfigEntity $config = null)

return editConfigView

array
resolveSetting(array $config)

updateConfig

null
setting(ConfigEntity $config = null)

get and set config

Details

at line 59
__construct(string $id, string $class)

ThemeEntity constructor.

Parameters

string $id theme id
string $class theme class name

at line 70
string getId()

get theme id

Return Value

string

at line 80
string getClass()

get class name of theme

Return Value

string

at line 90
mixed getTitle()

get theme title

Return Value

mixed

at line 101
string getDescription()

get theme's description

Return Value

string

at line 112
mixed getScreenshot()

get screenshot of theme

Return Value

mixed

at line 123
null|string getSettingsURI()

get theme setting page url

Return Value

null|string

at line 134
bool supportDesktop()

테마가 desktop 버전을 지원하는지 조사한다.

Return Value

bool desktop 버전을 지원할 경우 true

at line 145
bool supportMobile()

테마가 mobile 버전을 지원하는지 조사한다.

Return Value

bool mobile 버전을 지원할 경우 true

at line 156
AbstractTheme getObject()

get object of theme

Return Value

AbstractTheme

at line 175
mixed __call(string $method, array $arguments)

ThemeEntity에서 제공하지 않는 메소드일 경우 이 entity가 저장하고 있는 theme의 method를 호출한다.

Parameters

string $method method name
array $arguments argument list

Return Value

mixed

at line 187
string toJson(int $options)

Convert the object to its JSON representation.

Parameters

int $options json_encode option

Return Value

string

at line 197
array toArray()

Get the instance as an array.

Return Value

array

at line 213
string render()

Get the evaluated contents of the object.

Return Value

string

at line 225
View|void renderSetting(ConfigEntity $config = null)

return editConfigView

Parameters

ConfigEntity $config config data

Return Value

View|void

at line 240
array resolveSetting(array $config)

updateConfig

Parameters

array $config pure config data

Return Value

array

at line 252
null setting(ConfigEntity $config = null)

get and set config

Parameters

ConfigEntity $config config data

Return Value

null