EasyBlogModelComments
extends EasyBlogAdminModel
in package
Table of Contents
Properties
- $searchables : mixed
- $total : mixed
Methods
- __construct() : mixed
- deletePostComments() : mixed
- Delete comments from particular post
- deleteUserComments() : mixed
- Delete comments from particular user
- getData() : mixed
- Retrieves comments from the back end
- getGDPRComments() : mixed
- Get user's comments used by GDPR processing.
- getPagination() : mixed
- Retrieve pagination for comments. Used at the back end only
- getRecentCommentsOnAuthor() : mixed
- Get a list of recent comments posted on the author's post
- getSearchableItems() : mixed
- Get searchable columns
- getTopCommentersForAuthorsPost() : mixed
- Retrieve a list of top commenters for author's posts
- getTotalPending() : mixed
- Get the total number of comments that are awaiting moderation
- getUserStateFromRequest() : mixed
- Gets the value of a user state variable.
- publish() : array<string|int, mixed>
- Method to publish or unpublish categories
- bindTable() : mixed
- implodeValues() : mixed
- populateState() : void
- Populate current stats
Properties
$searchables
public
mixed
$searchables
= array()
$total
public
mixed
$total
= \null
Methods
__construct()
public
__construct() : mixed
deletePostComments()
Delete comments from particular post
public
deletePostComments(mixed $postId) : mixed
Parameters
- $postId : mixed
Tags
deleteUserComments()
Delete comments from particular user
public
deleteUserComments(mixed $key[, mixed $type = 'created_by' ]) : mixed
Parameters
- $key : mixed
- $type : mixed = 'created_by'
Tags
getData()
Retrieves comments from the back end
public
getData() : mixed
Tags
getGDPRComments()
Get user's comments used by GDPR processing.
public
getGDPRComments(mixed $userId) : mixed
Parameters
- $userId : mixed
Tags
getPagination()
Retrieve pagination for comments. Used at the back end only
public
getPagination() : mixed
Tags
getRecentCommentsOnAuthor()
Get a list of recent comments posted on the author's post
public
getRecentCommentsOnAuthor([mixed $authorId = null ][, mixed $limit = 5 ]) : mixed
Parameters
- $authorId : mixed = null
- $limit : mixed = 5
Tags
getSearchableItems()
Get searchable columns
public
getSearchableItems(mixed $query) : mixed
Parameters
- $query : mixed
Tags
getTopCommentersForAuthorsPost()
Retrieve a list of top commenters for author's posts
public
getTopCommentersForAuthorsPost([mixed $authorId = null ][, mixed $limit = 5 ]) : mixed
Parameters
- $authorId : mixed = null
- $limit : mixed = 5
Tags
getTotalPending()
Get the total number of comments that are awaiting moderation
public
getTotalPending() : 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'
publish()
Method to publish or unpublish categories
public
publish(mixed &$pks[, mixed $publish = 1 ]) : array<string|int, mixed>
Parameters
- $pks : mixed
- $publish : mixed = 1
Tags
Return values
array<string|int, mixed>bindTable()
protected
bindTable(mixed $tableName, mixed $result) : mixed
Parameters
- $tableName : mixed
- $result : mixed
implodeValues()
protected
implodeValues(mixed $data) : mixed
Parameters
- $data : mixed
populateState()
Populate current stats
protected
populateState() : void