Documentation

EasyBlogModelRatings extends EasyBlogAdminModel
in package

Table of Contents

Properties

$searchables  : mixed

Methods

__construct()  : mixed
getRatingUsers()  : mixed
Retrieves a list of users that rated on an item
getRatingValues()  : mixed
Retrieves the rated value of an object
getSearchableItems()  : mixed
Get searchable columns
getUserStateFromRequest()  : mixed
Gets the value of a user state variable.
hasVoted()  : mixed
Determines if a particular user has voted the item before
preloadRatings()  : mixed
Preload a list of ratings for each posts
preloadUserPostRatings()  : mixed
Preload user rating for each posts
removeRating()  : mixed
Remove all ratings associated with a composite key
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

getRatingUsers()

Retrieves a list of users that rated on an item

public getRatingUsers(mixed $uid, mixed $type[, mixed $limit = 5 ]) : mixed
Parameters
$uid : mixed
$type : mixed
$limit : mixed = 5
Tags
since
5.0
access

public

@return

getRatingValues()

Retrieves the rated value of an object

public getRatingValues(mixed $uid, mixed $type) : mixed
Parameters
$uid : mixed
$type : mixed
Tags
since
5.0
access

public

@return

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'

hasVoted()

Determines if a particular user has voted the item before

public hasVoted(mixed $uid, mixed $type[, mixed $userId = 0 ][, mixed $hash = '' ][, mixed $ipaddr = '' ]) : mixed
Parameters
$uid : mixed
$type : mixed
$userId : mixed = 0
$hash : mixed = ''
$ipaddr : mixed = ''
Tags
since
5.0
access

public

@return

preloadRatings()

Preload a list of ratings for each posts

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

public

@return

preloadUserPostRatings()

Preload user rating for each posts

public preloadUserPostRatings(mixed $postIds, mixed $userId[, mixed $hash = '' ][, mixed $ipaddr = '' ]) : mixed
Parameters
$postIds : mixed
$userId : mixed
$hash : mixed = ''
$ipaddr : mixed = ''
Tags
since
5.0
access

public

@return

removeRating()

Remove all ratings associated with a composite key

public removeRating(mixed $type, mixed $uid) : mixed
Parameters
$type : mixed
$uid : mixed
Tags
since
5.0
access

public

@return

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