PHP 클래스 Xpressengine\Skin\SkinEntity

SkinaHandler는 등록된 스킨들의 정보를 처리할 때, SkinEntity로 생성하여 사용한다.
저자: XE Developers ([email protected])
상속: implements Illuminate\Contracts\Support\Arrayable, implements Illuminate\Contracts\Support\Jsonable
파일 보기 프로젝트 열기: xpressengine/xpressengine 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$class class name of skin
$id skin id
$object object of skin

공개 메소드들

메소드 설명
__call ( string $method, array $arguments ) : mixed SkinEntity에서 제공하지 않는 메소드일 경우 이 entity가 저장하고 있는 skin의 method를 호출한다.
__construct ( string $id, string $class, array $config = null ) SkinEntity constructor.
getClass ( ) : string get class name of skin
getDescription ( ) : string get skin's description
getId ( ) : string get skin id
getObject ( ) : AbstractSkin get object of skin
getScreenshot ( ) : mixed get screenshot of skin
getSettingView ( array $config = [] ) : string | Illuminate\Contracts\Support\Renderable get skin setting view
getTitle ( ) : mixed get skin title
renderSetting ( array $args = [] ) : string | Illuminate\Contracts\Support\Renderable get skin setting view
resolveSetting ( array $config ) : array updateConfig
setting ( array $config = null ) : null get and set config
supportDesktop ( ) : boolean 스킨이 desktop 버전을 지원하는지 조사한다.
supportDesktopOnly ( ) : boolean 스킨이 desktop 버전만을 지원하는지 조사한다.
supportMobile ( ) : boolean 스킨이 mobile 버전을 지원하는지 조사한다.
supportMobileOnly ( ) : boolean 스킨이 mobile 버전만을 지원하는지 조사한다.
toArray ( ) : array Get the instance as an array.
toJson ( integer $options ) : string Convert the object to its JSON representation.

메소드 상세

__call() 공개 메소드

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

__construct() 공개 메소드

SkinEntity constructor.
public __construct ( string $id, string $class, array $config = null )
$id string skin id
$class string skin class name
$config array skin config data

getClass() 공개 메소드

get class name of skin
public getClass ( ) : string
리턴 string

getDescription() 공개 메소드

get skin's description
public getDescription ( ) : string
리턴 string

getId() 공개 메소드

get skin id
public getId ( ) : string
리턴 string

getObject() 공개 메소드

get object of skin
public getObject ( ) : AbstractSkin
리턴 AbstractSkin

getScreenshot() 공개 메소드

get screenshot of skin
public getScreenshot ( ) : mixed
리턴 mixed

getSettingView() 공개 메소드

get skin setting view
사용 중단: use renderSetting instead
public getSettingView ( array $config = [] ) : string | Illuminate\Contracts\Support\Renderable
$config array skin config
리턴 string | Illuminate\Contracts\Support\Renderable

getTitle() 공개 메소드

get skin title
public getTitle ( ) : mixed
리턴 mixed

renderSetting() 공개 메소드

get skin setting view
public renderSetting ( array $args = [] ) : string | Illuminate\Contracts\Support\Renderable
$args array skin config
리턴 string | Illuminate\Contracts\Support\Renderable

resolveSetting() 공개 메소드

updateConfig
public resolveSetting ( array $config ) : array
$config array pure config data
리턴 array

setting() 공개 메소드

get and set config
public setting ( array $config = null ) : null
$config array config data
리턴 null

supportDesktop() 공개 메소드

스킨이 desktop 버전을 지원하는지 조사한다.
public supportDesktop ( ) : boolean
리턴 boolean desktop 버전을 지원할 경우 true

supportDesktopOnly() 공개 메소드

스킨이 desktop 버전만을 지원하는지 조사한다.
public supportDesktopOnly ( ) : boolean
리턴 boolean desktop 버전만을 지원할 경우 true

supportMobile() 공개 메소드

스킨이 mobile 버전을 지원하는지 조사한다.
public supportMobile ( ) : boolean
리턴 boolean mobile 버전을 지원할 경우 true

supportMobileOnly() 공개 메소드

스킨이 mobile 버전만을 지원하는지 조사한다.
public supportMobileOnly ( ) : boolean
리턴 boolean mobile 버전만을 지원할 경우 true

toArray() 공개 메소드

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

toJson() 공개 메소드

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

프로퍼티 상세

$class 보호되어 있는 프로퍼티

class name of skin
protected $class

$id 보호되어 있는 프로퍼티

skin id
protected $id

$object 보호되어 있는 프로퍼티

object of skin
protected $object