CustomContentFrontService
extends BcFrontContentsService
in package
implements
CustomContentFrontServiceInterface
Uses
BcContainerTrait
CustomContentFrontService
Interfaces, Classes, Traits and Enums
Table of Contents
- $contentsService : CustomContentsService
- カスタムコンテンツサービス
- $entriesService : CustomEntriesService
- カスタムエントリーサービス
- __construct() : mixed
- Constructor
- getCustomContent() : mixed
- カスタムエントリーの単一データを取得する
- getCustomEntries() : mixed
- カスタムエントリーの一覧を取得する
- getIndexTemplate() : string
- 一覧用のテンプレートを取得する
- getService() : array<string|int, mixed>|mixed|object
- Get Service
- getViewTemplate() : string
- 詳細ページ用のテンプレートを取得する
- getViewVarsForFront() : array<string|int, mixed>
- フロント用の view 変数を取得する
- getViewVarsForIndex() : array<string|int, mixed>
- 一覧用の View 変数を取得する
- getViewVarsForView() : array<string|int, mixed>
- 詳細ページ用の View 変数を取得する
- hasService() : bool
- Has Service
- setupPreviewForIndex() : void
- カスタムエントリーの詳細ページ用のプレビューのセットアップを行う
- setupPreviewForView() : void
- カスタムエントリーの詳細ページ用のプレビューのセットアップを行う
- getCrumbs() : array<string|int, mixed>
- パンくず用のデータを取得する
Properties
$contentsService
カスタムコンテンツサービス
public
CustomContentsService
$contentsService
$entriesService
カスタムエントリーサービス
public
CustomEntriesService
$entriesService
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —getCustomContent()
カスタムエントリーの単一データを取得する
public
getCustomContent(int $entityId) : mixed
Parameters
- $entityId : int
Return values
mixed —getCustomEntries()
カスタムエントリーの一覧を取得する
public
getCustomEntries(CustomContent $customContent[, array<string|int, mixed> $queryParams = [] ]) : mixed
Parameters
- $customContent : CustomContent
- $queryParams : array<string|int, mixed> = []
Return values
mixed —getIndexTemplate()
一覧用のテンプレートを取得する
public
getIndexTemplate(CustomContent $customContent) : string
Parameters
- $customContent : CustomContent
Return values
string —getService()
Get Service
public
getService( $service) : array<string|int, mixed>|mixed|object
Parameters
Tags
Return values
array<string|int, mixed>|mixed|object —getViewTemplate()
詳細ページ用のテンプレートを取得する
public
getViewTemplate(CustomContent $customContent) : string
Parameters
- $customContent : CustomContent
Return values
string —getViewVarsForFront()
フロント用の view 変数を取得する
public
getViewVarsForFront(Content $content[, bool $viewContentCrumb = false ]) : array<string|int, mixed>
Parameters
- $content : Content
- $viewContentCrumb : bool = false
-
対象コンテンツのページかどうか
Tags
Return values
array<string|int, mixed> —getViewVarsForIndex()
一覧用の View 変数を取得する
public
getViewVarsForIndex(EntityInterface $customContent, ResultSetInterface $customEntries) : array<string|int, mixed>
Parameters
- $customContent : EntityInterface
- $customEntries : ResultSetInterface
Return values
array<string|int, mixed> —getViewVarsForView()
詳細ページ用の View 変数を取得する
public
getViewVarsForView(EntityInterface $customContent, int $entryId[, bool $preview = false ]) : array<string|int, mixed>
Parameters
- $customContent : EntityInterface
- $entryId : int
- $preview : bool = false
Return values
array<string|int, mixed> —hasService()
Has Service
public
hasService( $service) : bool
Parameters
Tags
Return values
bool —setupPreviewForIndex()
カスタムエントリーの詳細ページ用のプレビューのセットアップを行う
public
setupPreviewForIndex(Controller $controller) : void
Parameters
- $controller : Controller
Return values
void —setupPreviewForView()
カスタムエントリーの詳細ページ用のプレビューのセットアップを行う
public
setupPreviewForView(Controller $controller) : void
Parameters
- $controller : Controller
Return values
void —getCrumbs()
パンくず用のデータを取得する
protected
getCrumbs( $id[, bool $viewContentCrumb = false ]) : array<string|int, mixed>