PHP Class Xpressengine\Plugin\PluginRegister

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

Protected Properties

Свойство Type Description
$register Xpressengine\Register\Container register container

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

add() public méthode

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

addByEntity() public méthode

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

addByType() protected méthode

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

get() public méthode

get Registrable class name
public get ( string $id ) : mixed
$id string component's id
Résultat mixed

setComponentInfo() protected méthode

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

split() protected méthode

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

Property Details

$register protected_oe property

register container
protected Container,Xpressengine\Register $register
Résultat Xpressengine\Register\Container