PHP Class Xpressengine\Theme\ThemeEntity

XpressEngine에 등록된 테마들의 정보를 ThemeEntity로 생성하여 처리한다.
Author: XE Developers ([email protected])
Inheritance: implements Xpressengine\Theme\ThemeEntityInterface
Mostra file Open project: xpressengine/xpressengine Class Usage Examples

Protected Properties

Property Type Description
$class class name of theme
$config Xpressengine\Config\ConfigEntity
$id theme id
$object object of theme

Public Methods

Method Description
__call ( string $method, array $arguments ) : mixed ThemeEntity에서 제공하지 않는 메소드일 경우 이 entity가 저장하고 있는 theme의 method를 호출한다.
__construct ( string $id, string $class ) ThemeEntity constructor.
getClass ( ) : string get class name of theme
getDescription ( ) : string get theme's description
getId ( ) : string get theme id
getObject ( ) : AbstractTheme get object of theme
getScreenshot ( ) : mixed get screenshot of theme
getSettingsURI ( ) : null | string get theme setting page url
getTitle ( ) : mixed get theme title
render ( ) : string Get the evaluated contents of the object.
renderSetting ( ConfigEntity $config = null ) : Illuminate\Contracts\View\View | void return editConfigView
resolveSetting ( array $config ) : array updateConfig
setting ( ConfigEntity $config = null ) : null get and set config
supportDesktop ( ) : boolean 테마가 desktop 버전을 지원하는지 조사한다.
supportMobile ( ) : boolean 테마가 mobile 버전을 지원하는지 조사한다.
toArray ( ) : array Get the instance as an array.
toJson ( integer $options ) : string Convert the object to its JSON representation.

Method Details

__call() public method

ThemeEntity에서 제공하지 않는 메소드일 경우 이 entity가 저장하고 있는 theme의 method를 호출한다.
public __call ( string $method, array $arguments ) : mixed
$method string method name
$arguments array argument list
return mixed

__construct() public method

ThemeEntity constructor.
public __construct ( string $id, string $class )
$id string theme id
$class string theme class name

getClass() public method

get class name of theme
public getClass ( ) : string
return string

getDescription() public method

get theme's description
public getDescription ( ) : string
return string

getId() public method

get theme id
public getId ( ) : string
return string

getObject() public method

get object of theme
public getObject ( ) : AbstractTheme
return AbstractTheme

getScreenshot() public method

get screenshot of theme
public getScreenshot ( ) : mixed
return mixed

getSettingsURI() public method

get theme setting page url
public getSettingsURI ( ) : null | string
return null | string

getTitle() public method

get theme title
public getTitle ( ) : mixed
return mixed

render() public method

Get the evaluated contents of the object.
public render ( ) : string
return string

renderSetting() public method

return editConfigView
public renderSetting ( ConfigEntity $config = null ) : Illuminate\Contracts\View\View | void
$config Xpressengine\Config\ConfigEntity config data
return Illuminate\Contracts\View\View | void

resolveSetting() public method

updateConfig
public resolveSetting ( array $config ) : array
$config array pure config data
return array

setting() public method

get and set config
public setting ( ConfigEntity $config = null ) : null
$config Xpressengine\Config\ConfigEntity config data
return null

supportDesktop() public method

테마가 desktop 버전을 지원하는지 조사한다.
public supportDesktop ( ) : boolean
return boolean desktop 버전을 지원할 경우 true

supportMobile() public method

테마가 mobile 버전을 지원하는지 조사한다.
public supportMobile ( ) : boolean
return boolean mobile 버전을 지원할 경우 true

toArray() public method

Get the instance as an array.
public toArray ( ) : array
return array

toJson() public method

Convert the object to its JSON representation.
public toJson ( integer $options ) : string
$options integer json_encode option
return string

Property Details

$class protected_oe property

class name of theme
protected $class

$config protected_oe property

protected ConfigEntity,Xpressengine\Config $config
return Xpressengine\Config\ConfigEntity

$id protected_oe property

theme id
protected $id

$object protected_oe property

object of theme
protected $object