PHP 클래스 Xpressengine\Skin\SkinInstanceStore

저자: XE Developers ([email protected])
파일 보기 프로젝트 열기: xpressengine/xpressengine 1 사용 예제들

공개 메소드들

메소드 설명
__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)를 지정한다.

비공개 메소드들

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

메소드 상세

__construct() 공개 메소드

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

getConfigs() 공개 메소드

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

getSelectedSkin() 공개 메소드

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

setConfigs() 공개 메소드

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

setSelectedSkin() 공개 메소드

['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
리턴 void

setStore() 공개 메소드

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