Documentation

EasyBlogModelComment extends EasyBlogAdminModel
in package

Table of Contents

Properties

$searchables  : mixed
$_pagination  : mixed
$_total  : mixed

Methods

__construct()  : mixed
getComment()  : mixed
getComments()  : mixed
Retrieves comments
getCommentTotalLikes()  : mixed
getCompojoomComment()  : mixed
getCount()  : mixed
Retrieves the comment count for a post
getLatestComment()  : mixed
getPagination()  : int
Method to get a pagination object for the categories
getRowNumber()  : mixed
Get row number of a comment
getSearchableItems()  : mixed
Get searchable columns
getTotal()  : int
Method to get the total nr of the categories
getTotalComment()  : int
Method to get total comment post currently iregardless the status and associated blogs.
getUserModerateCommentCount()  : mixed
getUserStateFromRequest()  : mixed
Gets the value of a user state variable.
isLikeComment()  : mixed
like()  : mixed
Allows caller to add like on a comment
preloadCommentCount()  : mixed
Preload a list of comment counter for each posts
preloadComments()  : mixed
Preload a list of comment counter for each posts
unlike()  : mixed
Allows caller to unlike a comment
updateCommentSibling()  : mixed
bindTable()  : mixed
implodeValues()  : mixed
populateState()  : void
Stock method to auto-populate the model state.

Properties

$searchables

public mixed $searchables = array()

$_pagination

protected mixed $_pagination = \null

$_total

protected mixed $_total = \null

Methods

__construct()

public __construct() : mixed

getComment()

public getComment(mixed $commentId) : mixed
Parameters
$commentId : mixed

getComments()

Retrieves comments

public getComments([mixed $max = 0 ][, mixed $userId = 0 ][, mixed $sort = 'latest' ][, mixed $base = 'comment' ][, mixed $search = '' ][, mixed $published = 'all' ][, mixed $limit = 0 ]) : mixed
Parameters
$max : mixed = 0
$userId : mixed = 0
$sort : mixed = 'latest'
$base : mixed = 'comment'
$search : mixed = ''
$published : mixed = 'all'
$limit : mixed = 0
Tags
since
5.1
access

public

getCommentTotalLikes()

public getCommentTotalLikes(mixed $commentId) : mixed
Parameters
$commentId : mixed

getCompojoomComment()

public getCompojoomComment([mixed $max = 0 ][, mixed $userId = 0 ][, mixed $sort = 'latest' ][, mixed $base = 'comment' ][, mixed $search = '' ][, mixed $published = 'all' ]) : mixed
Parameters
$max : mixed = 0
$userId : mixed = 0
$sort : mixed = 'latest'
$base : mixed = 'comment'
$search : mixed = ''
$published : mixed = 'all'
Tags
since
4.0
access

public

@return

getCount()

Retrieves the comment count for a post

public getCount(mixed $postId) : mixed
Parameters
$postId : mixed
Tags
since
5.0
access

public

getLatestComment()

public getLatestComment(mixed $blogId[, mixed $parentId = 0 ]) : mixed
Parameters
$blogId : mixed
$parentId : mixed = 0

getPagination()

Method to get a pagination object for the categories

public getPagination() : int
Tags
access

public

Return values
int

getRowNumber()

Get row number of a comment

public getRowNumber(mixed $postId, mixed $commentId) : mixed
Parameters
$postId : mixed
$commentId : mixed
Tags
since
6.0
access

public

getSearchableItems()

Get searchable columns

public getSearchableItems(mixed $query) : mixed
Parameters
$query : mixed
Tags
since
5.2.0
access

public

getTotal()

Method to get the total nr of the categories

public getTotal() : int
Tags
access

public

Return values
int

getTotalComment()

Method to get total comment post currently iregardless the status and associated blogs.

public getTotalComment([mixed $userId = 0 ]) : int
Parameters
$userId : mixed = 0
Tags
access

public

Return values
int

getUserModerateCommentCount()

public getUserModerateCommentCount(mixed $userId) : mixed
Parameters
$userId : mixed

getUserStateFromRequest()

Gets the value of a user state variable.

public getUserStateFromRequest(mixed $key, mixed $request[, mixed $default = null ][, mixed $type = 'none' ]) : mixed
Parameters
$key : mixed
$request : mixed
$default : mixed = null
$type : mixed = 'none'

isLikeComment()

public isLikeComment(mixed $commentId, mixed $userId) : mixed
Parameters
$commentId : mixed
$userId : mixed

like()

Allows caller to add like on a comment

public static like(mixed $id[, mixed $userId = null ]) : mixed
Parameters
$id : mixed
$userId : mixed = null
Tags
since
4.0
access

public

@return

preloadCommentCount()

Preload a list of comment counter for each posts

public preloadCommentCount([mixed $postIds = array() ]) : mixed
Parameters
$postIds : mixed = array()
Tags
since
5.0
access

public

@return

preloadComments()

Preload a list of comment counter for each posts

public preloadComments([mixed $postIds = array() ]) : mixed
Parameters
$postIds : mixed = array()
Tags
since
5.0
access

public

@return

unlike()

Allows caller to unlike a comment

public unlike(mixed $id[, mixed $userId = null ]) : mixed
Parameters
$id : mixed
$userId : mixed = null
Tags
since
4.0
access

public

@return

updateCommentSibling()

public updateCommentSibling(mixed $blogId, mixed $nodeValue) : mixed
Parameters
$blogId : mixed
$nodeValue : mixed

bindTable()

protected bindTable(mixed $tableName, mixed $result) : mixed
Parameters
$tableName : mixed
$result : mixed

implodeValues()

protected implodeValues(mixed $data) : mixed
Parameters
$data : mixed

populateState()

Stock method to auto-populate the model state.

protected populateState() : void
Tags
since
12.2

        
On this page

Search results