baserCMS クラスリファレンス

BcSeoModelEventListener extends BcModelEventListener
in package
uses BcContainerTrait

Class BcSeoModelEventListener

Table of Contents

Properties

$events  : mixed
$layer  : string
レイヤー名
$plugin  : string
プラグイン名
$associatedTables  : array<string|int, mixed>
$isEdit  : bool

Methods

__construct()  : mixed
コンストラクタ
afterMarshal()  : mixed
afterMarshal
beforeFind()  : mixed
beforeFind
beforeMarshal()  : mixed
beforeMarshal
getAction()  : string
現在のアクションを特定する文字列を取得する
getService()  : array<string|int, mixed>|mixed|object
Get Service
hasService()  : bool
Has Service
implementedEvents()  : array<string|int, mixed>
implementedEvents
isAction()  : bool
指定した文字列が現在のアクションとしてみなされるかどうか判定する
isEdit()  : bool
対象の画面か判定
setAssociation()  : mixed
テーブル関連付け

Properties

Methods

__construct()

コンストラクタ

public __construct() : mixed
Tags
checked
noTodo
unitTest

afterMarshal()

afterMarshal

public afterMarshal(EventInterface $event, EntityInterface $entity, ArrayObject $data, ArrayObject $options) : mixed

バリデーションエラー時に SeoMetas の og_image などファイルフィールドを セッションにロールバックして次回レンダリング時に復元できるようにする

Parameters
$event : EventInterface
$entity : EntityInterface
$data : ArrayObject
$options : ArrayObject

beforeFind()

beforeFind

public beforeFind(EventInterface $event, SelectQuery $query) : mixed
Parameters
$event : EventInterface
$query : SelectQuery

beforeMarshal()

beforeMarshal

public beforeMarshal(EventInterface $event, ArrayObject $data) : mixed
Parameters
$event : EventInterface
$data : ArrayObject

getAction()

現在のアクションを特定する文字列を取得する

public getAction([bool $isContainController = true ]) : string
Parameters
$isContainController : bool = true

コントローラー名を含むかどうか(初期値:true)

Tags
checked
noTodo
unitTest
Return values
string

getService()

Get Service

public getService(mixed $service) : array<string|int, mixed>|mixed|object
Parameters
$service : mixed
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>|mixed|object

hasService()

Has Service

public hasService(mixed $service) : bool
Parameters
$service : mixed
Tags
checked
noTodo
unitTest
Return values
bool

implementedEvents()

implementedEvents

public implementedEvents() : array<string|int, mixed>
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

isAction()

指定した文字列が現在のアクションとしてみなされるかどうか判定する

public isAction(string $action[, bool $isContainController = true ]) : bool

コントローラー名、アクション名をキャメルケースに変換する前提で、ドットで結合した文字列とする (例)Users.AdminIndex

Parameters
$action : string

アクションを特定する為の文字列

$isContainController : bool = true

コントローラー名を含むかどうか(初期値:true)

Tags
checked
noTodo
unitTest
Return values
bool

setAssociation()

テーブル関連付け

private setAssociation(string $tableAlias) : mixed
Parameters
$tableAlias : string
On this page

Search results