PHP Class Xpressengine\Skin\SkinInstanceStore

Author: XE Developers ([email protected])
Show file Open project: xpressengine/xpressengine Class Usage Examples

Public Methods

Method Description
__construct ( ConfigManager $store ) SkinInstanceStore constructor.
getConfigs ( string $key, string $skinId = null ) : mixed 주어진 타겟과 그 타겟에 지정된 스킨의 설정정보를 가져온다. 주어진 타겟에 한번이라도 지정된 적이 있는 스킨정보를 모두 가져온다.
getSelectedSkin ( string $key, string $mode = null ) : array | string 주어진 key에 지정된 스킨을 조회한다.
setConfigs ( string $key, string $skinId, array $config = null ) : void 주어진 타겟에 지정된 스킨의 설정을 저장한다.
setSelectedSkin ( string $key, string $mode, string $skinId = null ) : void 주어진 타겟에 주어진 스킨을 지정한다. 두번째 파라메터가 배열일 경우, 두가지 모드의 스킨을 동시에 저장하는 것으로 간주한다.
setStore ( ConfigManager $store ) : void 저장소(persistence storage)를 지정한다.

Private Methods

Method Description
makeStoreKey ( string $type, string $key ) : string 주어진 키를 조합하여 저장소(persistence storage)에 조회할 키를 생성한다.

Method Details

__construct() public method

SkinInstanceStore constructor.
public __construct ( ConfigManager $store )
$store Xpressengine\Config\ConfigManager XpressEngine Config를 저장소(persistence storage)로 사용한다.

getConfigs() public method

두번째 파라메터가 있을 경우, 주어진 스킨의 설정정보만 가져온다.
public getConfigs ( string $key, string $skinId = null ) : mixed
$key string target key
$skinId string skin id
return mixed

getSelectedSkin() public method

주어진 key에 지정된 스킨을 조회한다.
public getSelectedSkin ( string $key, string $mode = null ) : array | string
$key string target key
$mode string 'mobile' or 'desktop'
return array | string

setConfigs() public method

주어진 타겟에 지정된 스킨의 설정을 저장한다.
public setConfigs ( string $key, string $skinId, array $config = null ) : void
$key string target key
$skinId string skin id
$config array skin config data
return void

setSelectedSkin() public method

['mobile' => 'SKIN_ID', 'desktop' => 'SKIN_ID']
public setSelectedSkin ( string $key, string $mode, string $skinId = null ) : void
$key string target key
$mode string 'mobile' or 'desktop'
$skinId string skin id
return void

setStore() public method

저장소(persistence storage)를 지정한다.
public setStore ( ConfigManager $store ) : void
$store Xpressengine\Config\ConfigManager config store
return void