BcBurgerEditorViewEventListener
extends BcViewEventListener
in package
baserCMS : Based Website Development Project <https://basercms.net> Copyright (c) NPO baser foundation <https://baserfoundation.org/>
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- コンストラクタ
- afterLayout() : void
- afterLayout
- beforeLayout() : void
- beforeLayout
- getAction() : string
- 現在のアクションを特定する文字列を取得する
- implementedEvents() : array<string|int, mixed>
- implementedEvents
- isAction() : bool
- 指定した文字列が現在のアクションとしてみなされるかどうか判定する
Properties
$events
登録イベント
public
array<string|int, mixed>
$events
= ['beforeLayout', 'afterLayout']
$layer
レイヤー名
public
string
$layer
= 'View'
$plugin
プラグイン名
public
string
$plugin
= ''
Methods
__construct()
コンストラクタ
public
__construct() : mixed
Tags
afterLayout()
afterLayout
public
afterLayout(EventInterface $event) : void
Parameters
- $event : EventInterface
beforeLayout()
beforeLayout
public
beforeLayout(EventInterface $event) : void
Parameters
- $event : EventInterface
getAction()
現在のアクションを特定する文字列を取得する
public
getAction([bool $isContainController = true ]) : string
Parameters
- $isContainController : bool = true
-
コントローラー名を含むかどうか(初期値:true)
Tags
Return values
stringimplementedEvents()
implementedEvents
public
implementedEvents() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>isAction()
指定した文字列が現在のアクションとしてみなされるかどうか判定する
public
isAction(string $action[, bool $isContainController = true ]) : bool
コントローラー名、アクション名をキャメルケースに変換する前提で、ドットで結合した文字列とする (例)Users.AdminIndex
Parameters
- $action : string
-
アクションを特定する為の文字列
- $isContainController : bool = true
-
コントローラー名を含むかどうか(初期値:true)