PHP Class Xpressengine\Plugin\PluginRegister

Theme, OIObject, Skin, DynamicField 등 Core 에서 특별히 취급하는 target 의 용어가 prefix 되어 있음
Author: XE Team (developers) ([email protected])
ファイルを表示 Open project: xpressengine/xpressengine Class Usage Examples

Protected Properties

Property Type Description
$register Xpressengine\Register\Container register container

Public Methods

Method Description
__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

Protected Methods

Method Description
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로 구분한다.

Method Details

__construct() public method

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

add() public method

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

addByEntity() public method

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

addByType() protected method

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

get() public method

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

setComponentInfo() protected method

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

split() protected method

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

Property Details

$register protected_oe property

register container
protected Container,Xpressengine\Register $register
return Xpressengine\Register\Container