Adventure Documentation

BlogController extends PageCommonController
in package

This controller describes the behavior of Blog posts.

Use the controller to generate a collection of Blog entities.

Tags
see
Blog

Main entity of collection

see
BlogCommentController

Associated BlogComment to Blog entity

see
BlogCategoryController

Associated BlogCategory to Blog entity

see
FilesController

Associated files to Blog entities (type = 'blog', id = $Blog->Id)

Table of Contents

__construct()  : mixed
getActiveDates()  : array<string|int, array<string|int, array<string|int, int>>>
Returns a list of the active dates for a specific Page of type 'blog' with the count of entities per date, grouped by page, year, month
getBlogPostCount()  : mixed
getDescription()  : string
Get the description of the Blog entity
getDescriptionList()  : string
Get the list description of the Blog entity
getTranslation()  : string
Get translation data

Methods

__construct()

public __construct([mixed $parseUriParameters = false ]) : mixed
Parameters
$parseUriParameters : mixed = false
Tags
Return values
mixed

getActiveDates()

Returns a list of the active dates for a specific Page of type 'blog' with the count of entities per date, grouped by page, year, month

public getActiveDates(mixed $Id) : array<string|int, array<string|int, array<string|int, int>>>
Parameters
$Id : mixed
Tags
Return values
array<string|int, array<string|int, array<string|int, int>>>

Array grouped by page id, year and month

getBlogPostCount()

public getBlogPostCount([mixed $pageId = null ]) : mixed
Parameters
$pageId : mixed = null
Tags
Return values
mixed

getDescription()

Get the description of the Blog entity

public getDescription(mixed $Id[, mixed $LanguageIso = null ]) : string
Parameters
$Id : mixed
$LanguageIso : mixed = null
Tags
Return values
string

getDescriptionList()

Get the list description of the Blog entity

public getDescriptionList(mixed $Id[, mixed $LanguageIso = null ]) : string
Parameters
$Id : mixed
$LanguageIso : mixed = null
Tags
Return values
string

getTranslation()

Get translation data

public getTranslation(mixed $Id, mixed $Title[, mixed $LanguageIso = null ][, mixed $Module = 'blog' ]) : string
Parameters
$Id : mixed
$Title : mixed
$LanguageIso : mixed = null
$Module : mixed = 'blog'
Tags
Return values
string

        

Search results