Documentation

EasyBlogModelPolls extends EasyBlogAdminModel
in package

Table of Contents

Properties

$searchables  : mixed
$total  : mixed
$_nextlimit  : mixed

Methods

__construct()  : mixed
deleteItems()  : mixed
Perform the deletion of the items of the poll
deletePolls()  : mixed
Perform the deletion of the polls given
deleteVotedItems()  : mixed
Perform the deletion of the voted items of the poll
getItems()  : mixed
Retrieve the items of the poll
getNextLimit()  : mixed
Retrieves the next limit
getPagination()  : mixed
Retrieve pagination for comments.
getPolls()  : mixed
Retrieves the polls of the site
getSearchableItems()  : mixed
Get searchable columns
getTotalItems()  : mixed
Retrieve the total number of the items of the poll
getTotalVotes()  : mixed
Retrieves the total votes of the poll/ poll item
getUserStateFromRequest()  : mixed
Gets the value of a user state variable.
getUserVoted()  : mixed
Retrieve the item that the user voted
getVoterIds()  : mixed
Retrieve the voter ids of the poll/ poll item
hasExpirationDate()  : mixed
Determine if the poll has expiration date
hasExpired()  : mixed
Determine if the poll has expired
hasVoted()  : mixed
Determine if the user has voted the poll
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

$_nextlimit

private mixed $_nextlimit = 0

Methods

__construct()

public __construct() : mixed

deleteItems()

Perform the deletion of the items of the poll

public deleteItems(mixed $pollId[, mixed $exclusion = [] ]) : mixed
Parameters
$pollId : mixed
$exclusion : mixed = []
Tags
since
6.0.0
access

public

deletePolls()

Perform the deletion of the polls given

public deletePolls(mixed $pollIds) : mixed
Parameters
$pollIds : mixed
Tags
since
6.0.0
access

public

deleteVotedItems()

Perform the deletion of the voted items of the poll

public deleteVotedItems(mixed $pollId[, mixed $exclusion = [] ]) : mixed
Parameters
$pollId : mixed
$exclusion : mixed = []
Tags
since
6.0.0
access

public

getItems()

Retrieve the items of the poll

public getItems(mixed $pollId) : mixed
Parameters
$pollId : mixed
Tags
since
6.0.0
access

public

getNextLimit()

Retrieves the next limit

public getNextLimit() : mixed
Tags
since
6.0.0
access

public

getPagination()

Retrieve pagination for comments.

public getPagination() : mixed
Tags
since
6.0.0
access

public

getPolls()

Retrieves the polls of the site

public getPolls([mixed $options = [] ]) : mixed
Parameters
$options : mixed = []
Tags
since
6.0.0
access

public

getSearchableItems()

Get searchable columns

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

public

getTotalItems()

Retrieve the total number of the items of the poll

public getTotalItems(mixed $pollId) : mixed
Parameters
$pollId : mixed
Tags
since
6.0.0
access

public

getTotalVotes()

Retrieves the total votes of the poll/ poll item

public getTotalVotes(mixed $pollId[, mixed $itemId = null ]) : mixed
Parameters
$pollId : mixed
$itemId : mixed = null
Tags
since
6.0.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'

getUserVoted()

Retrieve the item that the user voted

public getUserVoted(mixed $pollId, mixed $userId) : mixed
Parameters
$pollId : mixed
$userId : mixed
Tags
since
6.0.0
access

public

getVoterIds()

Retrieve the voter ids of the poll/ poll item

public getVoterIds(mixed $pollId[, mixed $itemId = null ][, mixed $options = [] ]) : mixed
Parameters
$pollId : mixed
$itemId : mixed = null
$options : mixed = []
Tags
since
6.0.0
access

public

hasExpirationDate()

Determine if the poll has expiration date

public hasExpirationDate(mixed $date) : mixed
Parameters
$date : mixed
Tags
since
6.0.0
access

public

hasExpired()

Determine if the poll has expired

public hasExpired(mixed $expiryDate) : mixed
Parameters
$expiryDate : mixed
Tags
since
6.0.0
access

public

hasVoted()

Determine if the user has voted the poll

public hasVoted(mixed $pollId, mixed $userId) : mixed
Parameters
$pollId : mixed
$userId : mixed
Tags
since
6.0.0
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