EasyBlogModelReactions
extends EasyBlogAdminModel
in package
Table of Contents
Properties
- $searchables : mixed
- $total : mixed
Methods
- __construct() : mixed
- deletePostReactions() : mixed
- Delete reactions history for a particular post
- getData() : mixed
- Used in the administration area to list recent reactions
- getPagination() : mixed
- Retrieves the pagination
- getReactionHistory() : mixed
- Retrieves the reaction history
- getReactions() : mixed
- Retrieves type of reactions
- getSearchableItems() : mixed
- Get searchable columns
- getUserReaction() : mixed
- Retrieves the reaction object
- getUserStateFromRequest() : mixed
- Gets the value of a user state variable.
- storeReaction() : mixed
- Store reaction per post by given user
- bindTable() : mixed
- implodeValues() : mixed
- populateState() : void
- Stock method to auto-populate the model state.
Properties
$searchables
public
mixed
$searchables
= array()
$total
public
mixed
$total
= \null
Methods
__construct()
public
__construct() : mixed
deletePostReactions()
Delete reactions history for a particular post
public
deletePostReactions(mixed $postId) : mixed
Parameters
- $postId : mixed
Tags
getData()
Used in the administration area to list recent reactions
public
getData() : mixed
Tags
getPagination()
Retrieves the pagination
public
getPagination() : mixed
Tags
getReactionHistory()
Retrieves the reaction history
public
getReactionHistory(mixed $postId, mixed $userId, mixed $tokenId) : mixed
Parameters
- $postId : mixed
- $userId : mixed
- $tokenId : mixed
Tags
getReactions()
Retrieves type of reactions
public
getReactions(EasyBlogPost $post) : mixed
Parameters
- $post : EasyBlogPost
Tags
getSearchableItems()
Get searchable columns
public
getSearchableItems(mixed $query) : mixed
Parameters
- $query : mixed
Tags
getUserReaction()
Retrieves the reaction object
public
getUserReaction(mixed $postId, mixed $userId, mixed $tokenId) : mixed
Parameters
- $postId : mixed
- $userId : mixed
- $tokenId : mixed
Tags
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'
storeReaction()
Store reaction per post by given user
public
storeReaction(mixed $userId, mixed $tokenId, mixed $postId, mixed $reactionId) : mixed
Parameters
- $userId : mixed
- $tokenId : mixed
- $postId : mixed
- $reactionId : mixed
Tags
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