ThemeEntity
class ThemeEntity implements ThemeEntityInterface
ThemeEntity는 하나의 테마에 대한 정보를 가지고 있는 클래스이다.
XpressEngine에 등록된 테마들의 정보를 ThemeEntity로 생성하여 처리한다.
Properties
protected string | $id | ||
protected AbstractTheme | $class | ||
protected AbstractTheme | $object | ||
protected ConfigEntity | $config |
Methods
ThemeEntity constructor.
get theme id
get class name of theme
get theme title
get theme's description
get screenshot of theme
get theme setting page url
테마가 desktop 버전을 지원하는지 조사한다.
테마가 mobile 버전을 지원하는지 조사한다.
get object of theme
ThemeEntity에서 제공하지 않는 메소드일 경우 이 entity가 저장하고 있는 theme의 method를 호출한다.
Convert the object to its JSON representation.
Get the instance as an array.
Get the evaluated contents of the object.
updateConfig
Details
at line 59
__construct(string $id, string $class)
ThemeEntity constructor.
at line 70
string
getId()
get theme id
at line 80
string
getClass()
get class name of theme
at line 90
mixed
getTitle()
get theme title
at line 101
string
getDescription()
get theme's description
at line 112
mixed
getScreenshot()
get screenshot of theme
at line 123
null|string
getSettingsURI()
get theme setting page url
at line 134
bool
supportDesktop()
테마가 desktop 버전을 지원하는지 조사한다.
at line 145
bool
supportMobile()
테마가 mobile 버전을 지원하는지 조사한다.
at line 156
AbstractTheme
getObject()
get object of theme
at line 175
mixed
__call(string $method, array $arguments)
ThemeEntity에서 제공하지 않는 메소드일 경우 이 entity가 저장하고 있는 theme의 method를 호출한다.
at line 187
string
toJson(int $options)
Convert the object to its JSON representation.
at line 197
array
toArray()
Get the instance as an array.
at line 213
string
render()
Get the evaluated contents of the object.
at line 225
View|void
renderSetting(ConfigEntity $config = null)
return editConfigView
at line 240
array
resolveSetting(array $config)
updateConfig
at line 252
null
setting(ConfigEntity $config = null)
get and set config