PHP Класс Xpressengine\Skin\SkinEntity

SkinaHandler는 등록된 스킨들의 정보를 처리할 때, SkinEntity로 생성하여 사용한다.
Автор: XE Developers ([email protected])
Наследование: implements Illuminate\Contracts\Support\Arrayable, implements Illuminate\Contracts\Support\Jsonable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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