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
deletePolls()
Perform the deletion of the polls given
public
deletePolls(mixed $pollIds) : mixed
Parameters
- $pollIds : mixed
Tags
deleteVotedItems()
Perform the deletion of the voted items of the poll
public
deleteVotedItems(mixed $pollId[, mixed $exclusion = [] ]) : mixed
Parameters
- $pollId : mixed
- $exclusion : mixed = []
Tags
getItems()
Retrieve the items of the poll
public
getItems(mixed $pollId) : mixed
Parameters
- $pollId : mixed
Tags
getNextLimit()
Retrieves the next limit
public
getNextLimit() : mixed
Tags
getPagination()
Retrieve pagination for comments.
public
getPagination() : mixed
Tags
getPolls()
Retrieves the polls of the site
public
getPolls([mixed $options = [] ]) : mixed
Parameters
- $options : mixed = []
Tags
getSearchableItems()
Get searchable columns
public
getSearchableItems(mixed $query) : mixed
Parameters
- $query : mixed
Tags
getTotalItems()
Retrieve the total number of the items of the poll
public
getTotalItems(mixed $pollId) : mixed
Parameters
- $pollId : mixed
Tags
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
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
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
hasExpirationDate()
Determine if the poll has expiration date
public
hasExpirationDate(mixed $date) : mixed
Parameters
- $date : mixed
Tags
hasExpired()
Determine if the poll has expired
public
hasExpired(mixed $expiryDate) : mixed
Parameters
- $expiryDate : mixed
Tags
hasVoted()
Determine if the user has voted the poll
public
hasVoted(mixed $pollId, mixed $userId) : mixed
Parameters
- $pollId : mixed
- $userId : 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