baserCMS クラスリファレンス

CustomContentFrontService extends BcFrontContentsService
in package
implements CustomContentFrontServiceInterface Uses BcContainerTrait

CustomContentFrontService

Table of Contents

Interfaces

CustomContentFrontServiceInterface

Properties

$ContentsService  : CustomContentsService
カスタムコンテンツサービス
$EntriesService  : CustomEntriesService
カスタムエントリーサービス

Methods

__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

Methods

getCustomContent()

カスタムエントリーの単一データを取得する

public getCustomContent(int $entityId) : mixed
Parameters
$entityId : int
Tags
checked
noTodo
unitTest

getCustomEntries()

カスタムエントリーの一覧を取得する

public getCustomEntries(CustomContent $customContent[, array<string|int, mixed> $queryParams = [] ]) : mixed
Parameters
$customContent : CustomContent
$queryParams : array<string|int, mixed> = []
Tags
checked
noTodo
unitTest

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

getViewVarsForFront()

フロント用の view 変数を取得する

public getViewVarsForFront(Content $content[, bool $viewContentCrumb = false ]) : array<string|int, mixed>
Parameters
$content : Content
$viewContentCrumb : bool = false

対象コンテンツのページかどうか

Tags
noTodo
checked
unitTest
Return values
array<string|int, mixed>

getViewVarsForIndex()

一覧用の View 変数を取得する

public getViewVarsForIndex(EntityInterface $customContent, ResultSetInterface $customEntries) : array<string|int, mixed>
Parameters
$customContent : EntityInterface
$customEntries : ResultSetInterface
Tags
checked
noTodo
unitTest
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
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

hasService()

Has Service

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

setupPreviewForIndex()

カスタムエントリーの詳細ページ用のプレビューのセットアップを行う

public setupPreviewForIndex(Controller $controller) : void
Parameters
$controller : Controller
Tags
checked
noTodo
unitTest

setupPreviewForView()

カスタムエントリーの詳細ページ用のプレビューのセットアップを行う

public setupPreviewForView(Controller $controller) : void
Parameters
$controller : Controller
Tags
checked
noTodo
unitTest

getCrumbs()

パンくず用のデータを取得する

protected getCrumbs( $id[, bool $viewContentCrumb = false ]) : array<string|int, mixed>
Parameters
$id :
$viewContentCrumb : bool = false

コンテンツ管理対象コンテンツのパンくずを表示するかどうか

Tags
noTodo
checked
unitTest
Return values
array<string|int, mixed>

        
On this page

Search results