baserCMS クラスリファレンス

BcFrontContentsComponent extends Component
in package
Uses BcContainerTrait

Class BcContentsComponent

階層コンテンツと連携したフォーム画面を作成する為のコンポーネント

《役割》

  • フロントエンドでコンテンツデータを設定 Controller / View にて、$this->request->getAttribute('currentContent') で参照できる

Table of Contents

Properties

$_Controller  : Controller
$ContentsService  : ContentsServiceInterface
$Request  : ServerRequest

Methods

beforeFilter()  : void
beforeFilter
getService()  : array<string|int, mixed>|mixed|object
Get Service
hasService()  : bool
Has Service
initialize()  : void
Initialize
setLayout()  : mixed
レイアウトをセットする
setupFront()  : mixed
フロントエンドのセットアップ

Properties

Methods

beforeFilter()

beforeFilter

public beforeFilter(EventInterface $event) : void
Parameters
$event : EventInterface
Tags
checked
unitTest
noTodo

getService()

Get Service

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

hasService()

Has Service

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

initialize()

Initialize

public initialize(array<string|int, mixed> $config) : void

設定の初期化を行う

  • viewContentCrumb: コンテンツ管理対象コンテンツのパンくずを表示するかどうか
Parameters
$config : array<string|int, mixed>
Tags
checked
noTodo
unitTest

setLayout()

レイアウトをセットする

public setLayout( $currentContent) : mixed
Parameters
$currentContent :
Tags
checked
noTodo
unitTest

setupFront()

フロントエンドのセットアップ

public setupFront() : mixed
Tags
checked
unitTest
noTodo

        
On this page

Search results