Documentation

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

getFavouritesPost()

Retrieve lists of user's favourites post

public getFavouritesPost([mixed $options = array() ]) : mixed
Parameters
$options : mixed = array()
Tags
since
5.2
access

public

getPagination()

Retrieves the pagination

public getPagination() : mixed
Tags
since
5.2
access

public

getSearchableItems()

Get searchable columns

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

public

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
since
5.2
access

public

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
since
5.2
access

public

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