PHP 클래스 Xpressengine\Plugin\PluginRegister

Theme, OIObject, Skin, DynamicField 등 Core 에서 특별히 취급하는 target 의 용어가 prefix 되어 있음
저자: XE Team (developers) ([email protected])
파일 보기 프로젝트 열기: xpressengine/xpressengine 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$register Xpressengine\Register\Container register container

공개 메소드들

메소드 설명
__construct ( Container $register ) PluginRegister constructor.
add ( string $component ) : void register class 플러그인의 composer.json 을 통해 등록하지 않을 때 사용
addByEntity ( PluginEntity $entity ) : void 주어진 플러그인에 포함된 component를 register에 등록한다.
get ( string $id ) : mixed get Registrable class name

보호된 메소드들

메소드 설명
addByType ( array $parts, Xpressengine\Plugin\ComponentInterface $component ) : void type, target + type 두가지 모두 등록
setComponentInfo ( array $info ) : void 주어진 정보를 component에 설정한다.
split ( string $id ) : string 주어진 id를 name, plugin, type, target로 구분한다.

메소드 상세

__construct() 공개 메소드

PluginRegister constructor.
public __construct ( Container $register )
$register Xpressengine\Register\Container Register

add() 공개 메소드

register class 플러그인의 composer.json 을 통해 등록하지 않을 때 사용
public add ( string $component ) : void
$component string component class name
리턴 void

addByEntity() 공개 메소드

주어진 플러그인에 포함된 component를 register에 등록한다.
public addByEntity ( PluginEntity $entity ) : void
$entity PluginEntity 플러그인
리턴 void

addByType() 보호된 메소드

type, target + type 두가지 모두 등록
protected addByType ( array $parts, Xpressengine\Plugin\ComponentInterface $component ) : void
$parts array parts of id
$component Xpressengine\Plugin\ComponentInterface component class name
리턴 void

get() 공개 메소드

get Registrable class name
public get ( string $id ) : mixed
$id string component's id
리턴 mixed

setComponentInfo() 보호된 메소드

주어진 정보를 component에 설정한다.
protected setComponentInfo ( array $info ) : void
$info array component 정보
리턴 void

split() 보호된 메소드

주어진 id를 name, plugin, type, target로 구분한다.
protected split ( string $id ) : string
$id string component id
리턴 string

프로퍼티 상세

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

register container
protected Container,Xpressengine\Register $register
리턴 Xpressengine\Register\Container