baserCMS クラスリファレンス

BlogFrontService
in package
implements BlogFrontServiceInterface Uses BcContainerTrait

BlogFrontService

Table of Contents

Interfaces

BlogFrontServiceInterface
BlogFrontServiceInterface

Properties

$BlogCategoriesService  : BlogCategoriesService
$BlogCategoriesService  : BlogCategoriesService|BlogCategoriesServiceInterface
BlogCategoriesService
$BlogContentsService  : BlogContentsService
$BlogContentsService  : BlogContentsService|BlogContentsServiceInterface
BlogContentsService
$BlogPostsService  : BlogPostsService
$BlogPostsService  : BlogPostsService|BlogPostsServiceInterface
BlogPostsService

Methods

__construct()  : mixed
Constructor
getArchivesTemplate()  : string
アーカイブページ用のテンプレート名を取得する
getCategoryCrumbs()  : array<string|int, mixed>
カテゴリ用のパンくずを取得する
getIndexTemplate()  : string
一覧用のテンプレート名を取得する
getService()  : array<string|int, mixed>|mixed|object
Get Service
getSingleTemplate()  : string
ブログ詳細ページ用のテンプレート名を取得する
getViewVarsBlogMonthlyArchivesWidget()  : array<string|int, mixed>
ブログ月別アーカイブウィジェット用の View 変数を取得する
getViewVarsForArchivesByAuthor()  : array<string|int, mixed>
著者別アーカイブ一覧の view 用変数を取得する
getViewVarsForArchivesByCategory()  : array<string|int, mixed>
カテゴリー別アーカイブ一覧の view 変数を取得する
getViewVarsForArchivesByDate()  : array<string|int, mixed>
日付別アーカイブ一覧の view 用変数を取得する
getViewVarsForArchivesByTag()  : array<string|int, mixed>
タグ別アーカイブ一覧の view 用変数を取得する
getViewVarsForBlogAuthorArchivesWidget()  : array<string|int, mixed>|false
ブログ投稿者一覧ウィジェット用の View 変数を取得する
getViewVarsForBlogCalendarWidget()  : array<string|int, mixed>
ブログカレンダーウィジェット用の View 変数を取得する
getViewVarsForBlogCategoryArchivesWidget()  : array<string|int, mixed>
ブログカテゴリウィジェット用の View 変数を取得する
getViewVarsForBlogYearlyArchivesWidget()  : array<string|int, mixed>
ブログ年別アーカイブウィジェット用の View 変数を取得する
getViewVarsForIndex()  : array<string|int, array<string|int, mixed>>
記事一覧用の view 変数を取得する
getViewVarsForIndexRss()  : array<string|int, mixed>
RSS用 の View 変数を取得
getViewVarsForSingle()  : array<string|int, mixed>
ブログ記事詳細ページの view 用変数を取得する
getViewVarsRecentEntriesWidget()  : array<string|int, mixed>
最近の投稿ウィジェット用 View 変数を取得する
hasService()  : bool
Has Service
setupPreviewForArchives()  : void
プレビュー用のセットアップをする
setupPreviewForIndex()  : void
プレビュー用のセットアップをする

Properties

Methods

__construct()

Constructor

public __construct() : mixed

サービスクラスを初期化する

Tags
checked
noTodo
unitTest

getArchivesTemplate()

アーカイブページ用のテンプレート名を取得する

public getArchivesTemplate(BlogContent $blogContent) : string

ブログコンテンツの設定に依存する

Parameters
$blogContent : BlogContent
Tags
checked
noTodo
unitTest
Return values
string

getCategoryCrumbs()

カテゴリ用のパンくずを取得する

public getCategoryCrumbs(string $baseUrl, int $categoryId[, mixed $isCategoryPage = true ]) : array<string|int, mixed>
Parameters
$baseUrl : string
$categoryId : int
$isCategoryPage : mixed = true
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getIndexTemplate()

一覧用のテンプレート名を取得する

public getIndexTemplate(BlogContent|EntityInterface|array<string|int, mixed> $blogContent) : string
Parameters
$blogContent : BlogContent|EntityInterface|array<string|int, mixed>
Tags
checked
noTodo
unitTest
Return values
string

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

getSingleTemplate()

ブログ詳細ページ用のテンプレート名を取得する

public getSingleTemplate(BlogContent $blogContent) : string

ブログコンテンツの設定に依存する

Parameters
$blogContent : BlogContent
Tags
checked
noTodo
unitTest
Return values
string

getViewVarsBlogMonthlyArchivesWidget()

ブログ月別アーカイブウィジェット用の View 変数を取得する

public getViewVarsBlogMonthlyArchivesWidget(int $blogContentId[, int $limit = 12 ][, bool $viewCount = false ]) : array<string|int, mixed>
Parameters
$blogContentId : int
$limit : int = 12
$viewCount : bool = false
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getViewVarsForArchivesByAuthor()

著者別アーカイブ一覧の view 用変数を取得する

public getViewVarsForArchivesByAuthor(ResultSet $posts, string $author, BlogContent $blogContent) : array<string|int, mixed>
Parameters
$posts : ResultSet
$author : string
$blogContent : BlogContent
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getViewVarsForArchivesByCategory()

カテゴリー別アーカイブ一覧の view 変数を取得する

public getViewVarsForArchivesByCategory(ResultSet $posts, string $category, ServerRequest $request, EntityInterface $blogContent, array<string|int, mixed> $crumbs) : array<string|int, mixed>
Parameters
$posts : ResultSet
$category : string
$request : ServerRequest
$blogContent : EntityInterface
$crumbs : array<string|int, mixed>
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getViewVarsForArchivesByDate()

日付別アーカイブ一覧の view 用変数を取得する

public getViewVarsForArchivesByDate(ResultSet $posts, string $year, string $month, string $day, BlogContent $blogContent) : array<string|int, mixed>
Parameters
$posts : ResultSet
$year : string
$month : string
$day : string
$blogContent : BlogContent
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getViewVarsForArchivesByTag()

タグ別アーカイブ一覧の view 用変数を取得する

public getViewVarsForArchivesByTag(ResultSet $posts, string $tag, BlogContent $blogContent) : array<string|int, mixed>
Parameters
$posts : ResultSet
$tag : string
$blogContent : BlogContent
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getViewVarsForBlogAuthorArchivesWidget()

ブログ投稿者一覧ウィジェット用の View 変数を取得する

public getViewVarsForBlogAuthorArchivesWidget(int $blogContentId, bool $viewCount) : array<string|int, mixed>|false
Parameters
$blogContentId : int
$viewCount : bool
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>|false

getViewVarsForBlogCalendarWidget()

ブログカレンダーウィジェット用の View 変数を取得する

public getViewVarsForBlogCalendarWidget(int $blogContentId[, string $year = '' ][, string $month = '' ]) : array<string|int, mixed>
Parameters
$blogContentId : int
$year : string = ''
$month : string = ''
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getViewVarsForBlogCategoryArchivesWidget()

ブログカテゴリウィジェット用の View 変数を取得する

public getViewVarsForBlogCategoryArchivesWidget(int $blogContentId[, bool $limit = false ][, bool $viewCount = false ][, int $depth = 1 ][, string|null $contentType = null ]) : array<string|int, mixed>
Parameters
$blogContentId : int
$limit : bool = false
$viewCount : bool = false
$depth : int = 1
$contentType : string|null = null
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getViewVarsForBlogYearlyArchivesWidget()

ブログ年別アーカイブウィジェット用の View 変数を取得する

public getViewVarsForBlogYearlyArchivesWidget(int $blogContentId[, bool $limit = false ][, bool $viewCount = false ]) : array<string|int, mixed>
Parameters
$blogContentId : int
$limit : bool = false
$viewCount : bool = false
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getViewVarsForIndex()

記事一覧用の view 変数を取得する

public getViewVarsForIndex(ServerRequest $request, BlogContent $blogContent, ResultSet $posts) : array<string|int, array<string|int, mixed>>
Parameters
$request : ServerRequest
$blogContent : BlogContent
$posts : ResultSet
Tags
checked
unitTest
noTodo
Return values
array<string|int, array<string|int, mixed>>

getViewVarsForIndexRss()

RSS用 の View 変数を取得

public getViewVarsForIndexRss(ServerRequest $request, BlogContent $blogContent, ResultSet $posts) : array<string|int, mixed>
Parameters
$request : ServerRequest
$blogContent : BlogContent
$posts : ResultSet
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getViewVarsForSingle()

ブログ記事詳細ページの view 用変数を取得する

public getViewVarsForSingle(ServerRequest $request, EntityInterface $blogContent, array<string|int, mixed> $crumbs) : array<string|int, mixed>
Parameters
$request : ServerRequest
$blogContent : EntityInterface
$crumbs : array<string|int, mixed>
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getViewVarsRecentEntriesWidget()

最近の投稿ウィジェット用 View 変数を取得する

public getViewVarsRecentEntriesWidget(int $blogContentId[, int $limit = 5 ]) : array<string|int, mixed>
Parameters
$blogContentId : int
$limit : int = 5
Tags
noTodo
checked
unitTest
Return values
array<string|int, mixed>

hasService()

Has Service

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

setupPreviewForArchives()

プレビュー用のセットアップをする

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

setupPreviewForIndex()

プレビュー用のセットアップをする

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

        
On this page

Search results