PHP Class BcContentsComponent

階層コンテンツと連携したフォーム画面を作成する為のコンポーネント 《役割》 - コンテンツ一覧へのパンくずを自動追加 - フロントエンドでコンテンツデータを設定 Controller / View にて、$this->request->params['Content'] で参照できる - コンテンツ保存フォームを自動表示 - コンテンツ保存フォームのデータソースを設定 - コンテンツ保存フォームの初期値を設定
Inheritance: extends Component
Afficher le fichier Open project: baserproject/basercms

Méthodes publiques

Свойство Type Description
$editAction string コンテンツ編集用のアクション名 判定に利用 settings で指定する
$preview プレビューモード
$type string コンテンツタイプ settings で指定する
$useForm boolean Content 保存フォームをコントローラーで利用するかどうか settings で指定する
$useViewCache boolean ビューキャッシュを利用するかどうか

Protected Properties

Свойство Type Description
$_Controller Controller コントローラー

Méthodes publiques

Méthode Description
beforeRender ( Controller $controller ) : void Before render
getContent ( integer $entityId = null ) : array Content データを取得する
getCrumbs ( $id ) : array パンくず用のデータを取得する
getParentLayoutTemplate ( $id ) : string レイアウトテンプレートを取得する
getTypes ( ) : array 登録されているタイプの一覧を取得する
initialize ( Controller $controller ) : void Initialize
settingForm ( Controller $controller, $currentSiteId, $currentContentId = null ) : void コンテンツ保存フォームを設定する
setupAdmin ( ) 管理システム設定
setupFront ( ) フロントエンドのセットアップ

Method Details

beforeRender() public méthode

Before render
public beforeRender ( Controller $controller ) : void
$controller Controller
Résultat void

getContent() public méthode

Content データを取得する
public getContent ( integer $entityId = null ) : array
$entityId integer
Résultat array

getCrumbs() public méthode

パンくず用のデータを取得する
public getCrumbs ( $id ) : array
$id
Résultat array

getParentLayoutTemplate() public méthode

レイアウトテンプレートを取得する
public getParentLayoutTemplate ( $id ) : string
$id
Résultat string $parentTemplate|false

getTypes() public méthode

登録されているタイプの一覧を取得する
public getTypes ( ) : array
Résultat array

initialize() public méthode

Initialize
public initialize ( Controller $controller ) : void
$controller Controller Controller with components to initialize
Résultat void

settingForm() public méthode

コンテンツ保存フォームを設定する
public settingForm ( Controller $controller, $currentSiteId, $currentContentId = null ) : void
$controller Controller
Résultat void

setupAdmin() public méthode

管理システム設定
public setupAdmin ( )

setupFront() public méthode

フロントエンドのセットアップ
public setupFront ( )

Property Details

$_Controller protected_oe property

コントローラー
protected Controller $_Controller
Résultat Controller

$editAction public_oe property

コンテンツ編集用のアクション名 判定に利用 settings で指定する
public string $editAction
Résultat string

$preview public_oe property

プレビューモード
public $preview

$type public_oe property

コンテンツタイプ settings で指定する
public string $type
Résultat string

$useForm public_oe property

Content 保存フォームをコントローラーで利用するかどうか settings で指定する
public bool $useForm
Résultat boolean

$useViewCache public_oe property

ビューキャッシュを利用するかどうか
Deprecation: 5.0.0 since 4.0.0 CakePHP3では、ビューキャッシュは廃止となる為、別の方法に移行する
public bool $useViewCache
Résultat boolean