EasyBlogModelFavourites
extends EasyBlogAdminModel
in package
Table of Contents
Properties
- $searchables : mixed
Methods
- __construct() : mixed
- getFavouritesPost() : mixed
- Retrieve lists of user's favourites post
- getPagination() : mixed
- Retrieves the pagination
- getSearchableItems() : mixed
- Get searchable columns
- getUserStateFromRequest() : mixed
- Gets the value of a user state variable.
- isFavourited() : mixed
- Determine if the post is already been favourited
- removeFavourites() : mixed
- Remove post from user's favourites list
- bindTable() : mixed
- implodeValues() : mixed
- populateState() : void
- Stock method to auto-populate the model state.
Properties
$searchables
public
mixed
$searchables
= array()
Methods
__construct()
public
__construct() : mixed
getFavouritesPost()
Retrieve lists of user's favourites post
public
getFavouritesPost([mixed $options = array() ]) : mixed
Parameters
- $options : mixed = array()
Tags
getPagination()
Retrieves the pagination
public
getPagination() : mixed
Tags
getSearchableItems()
Get searchable columns
public
getSearchableItems(mixed $query) : mixed
Parameters
- $query : 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'
isFavourited()
Determine if the post is already been favourited
public
isFavourited(mixed $postId, mixed $userId) : mixed
Parameters
- $postId : mixed
- $userId : mixed
Tags
removeFavourites()
Remove post from user's favourites list
public
removeFavourites(mixed $postId, mixed $userId[, mixed $type = 'post' ]) : mixed
Parameters
- $postId : mixed
- $userId : mixed
- $type : mixed = 'post'
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