Adventure Documentation

BlogCommentController extends CollectionController
in package

This controller describes the behavior of Blog Comments.

Use the controller to generate a collection of BlogComment entities.

Tags
see
BlogComment

Main entity of collection

see
BlogController

BlogComment belongs to the Blog entity, use Blog->Id with attribute 'blogId'

Table of Contents

__construct()  : mixed
count()  : int
Get the number of comments for a blog post
countByParent()  : int
Get the number of comments for a blog post, optionally filtered by parent

Methods

__construct()

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

count()

Get the number of comments for a blog post

public count(mixed $BlogId[, mixed $LanguageIso = null ]) : int
Parameters
$BlogId : mixed
$LanguageIso : mixed = null
Tags
Return values
int

countByParent()

Get the number of comments for a blog post, optionally filtered by parent

public countByParent(int $BlogId[, int|null $ParentId = null ][, string|null $LanguageIso = null ]) : int
Parameters
$BlogId : int

ID of the Blog entity

$ParentId : int|null = null

Parent comment ID (0 for root comments only, null for all)

$LanguageIso : string|null = null

Language ISO code (default: current language)

Tags
Return values
int

        

Search results