EasyBlogPolls
extends EasyBlog
in package
Table of Contents
Properties
- $acl : mixed
- $app : mixed
- $config : mixed
- $db : mixed
- $doc : mixed
- $input : mixed
- $jconfig : mixed
- $lang : mixed
- $my : mixed
- $string : mixed
- $table : mixed
- $nextlimit : mixed
Methods
- __construct() : mixed
- __get() : mixed
- Magic method to get properties which don't exist on this object but on the table
- canCreate() : mixed
- Determine if the poll can be created by the current user
- canDelete() : mixed
- Determine if the poll can be deleted by the current user
- canEdit() : mixed
- Determine if the poll can be edited by the current user
- delete() : mixed
- Delete the poll
- getBlockHtml() : mixed
- Retrieve the html of the poll block
- getDefaultObject() : mixed
- Retrieve the default object data of a fresh poll
- getError() : mixed
- Retrieve the error message
- getErrors() : mixed
- getFormattedItems() : mixed
- Retrieve the formatted items for the block data
- getFormattedObject() : mixed
- Retrieve the formatted object data of the poll
- getItems() : mixed
- Retrieve the items of the poll
- getNextLimit() : mixed
- Retrieve the voters of the poll/poll item
- getTotalItems() : mixed
- Retrieve the total number of the items of the poll
- getTotalVotes() : mixed
- Retrieve the total votes of the poll/poll item
- getVoters() : mixed
- Retrieve the voters of the poll/poll item
- hasError() : mixed
- hasErrors() : mixed
- hasExpirationDate() : mixed
- Determine if the poll has expiration date
- hasExpired() : mixed
- Determine if the poll has expired
- isMobile() : mixed
- Determines if this is a mobile layout
- isPublished() : mixed
- Determine if the poll is published or not
- isTablet() : mixed
- Determines if this is a tablet layout
- loadLanguage() : mixed
- Helper method to load language
- savePoll() : mixed
- Saves a poll
- setError() : mixed
- store() : mixed
- Stores the table
- unvote() : mixed
- Perform unvote action on the poll
- vote() : mixed
- Perform vote action on the poll
Properties
$acl
public
mixed
$acl
= \null
$app
public
mixed
$app
= \null
$config
public
mixed
$config
= \null
$db
public
mixed
$db
= \null
$doc
public
mixed
$doc
= \null
$input
public
mixed
$input
= \null
$jconfig
public
mixed
$jconfig
= \null
$lang
public
mixed
$lang
= \null
$my
public
mixed
$my
= \null
$string
public
mixed
$string
= \null
$table
public
mixed
$table
= \null
$nextlimit
private
mixed
$nextlimit
= 0
Methods
__construct()
public
__construct([mixed $id = null ]) : mixed
Parameters
- $id : mixed = null
__get()
Magic method to get properties which don't exist on this object but on the table
public
__get(mixed $key) : mixed
Parameters
- $key : mixed
Tags
canCreate()
Determine if the poll can be created by the current user
public
canCreate() : mixed
Tags
canDelete()
Determine if the poll can be deleted by the current user
public
canDelete() : mixed
Tags
canEdit()
Determine if the poll can be edited by the current user
public
canEdit() : mixed
Tags
delete()
Delete the poll
public
delete() : mixed
Tags
getBlockHtml()
Retrieve the html of the poll block
public
getBlockHtml() : mixed
Tags
getDefaultObject()
Retrieve the default object data of a fresh poll
public
getDefaultObject() : mixed
Tags
getError()
Retrieve the error message
public
getError() : mixed
Tags
getErrors()
public
getErrors() : mixed
getFormattedItems()
Retrieve the formatted items for the block data
public
getFormattedItems() : mixed
Tags
getFormattedObject()
Retrieve the formatted object data of the poll
public
getFormattedObject([mixed $options = [] ]) : mixed
Parameters
- $options : mixed = []
Tags
getItems()
Retrieve the items of the poll
public
getItems() : mixed
Tags
getNextLimit()
Retrieve the voters of the poll/poll item
public
getNextLimit() : mixed
Tags
getTotalItems()
Retrieve the total number of the items of the poll
public
getTotalItems() : mixed
Tags
getTotalVotes()
Retrieve the total votes of the poll/poll item
public
getTotalVotes([mixed $itemId = null ]) : mixed
Parameters
- $itemId : mixed = null
Tags
getVoters()
Retrieve the voters of the poll/poll item
public
getVoters(mixed $itemId[, mixed $options = [] ]) : mixed
Parameters
- $itemId : mixed
- $options : mixed = []
Tags
hasError()
public
hasError() : mixed
hasErrors()
public
hasErrors() : mixed
hasExpirationDate()
Determine if the poll has expiration date
public
hasExpirationDate() : mixed
Tags
hasExpired()
Determine if the poll has expired
public
hasExpired() : mixed
Tags
isMobile()
Determines if this is a mobile layout
public
isMobile() : mixed
Tags
isPublished()
Determine if the poll is published or not
public
isPublished() : mixed
Tags
isTablet()
Determines if this is a tablet layout
public
isTablet() : mixed
Tags
loadLanguage()
Helper method to load language
public
loadLanguage([mixed $admin = false ]) : mixed
Parameters
- $admin : mixed = false
Tags
savePoll()
Saves a poll
public
savePoll(mixed $data) : mixed
Parameters
- $data : mixed
Tags
setError()
public
setError(mixed $msg) : mixed
Parameters
- $msg : mixed
store()
Stores the table
public
store() : mixed
Tags
unvote()
Perform unvote action on the poll
public
unvote(mixed $itemId, mixed $userId[, mixed $isPrevious = false ]) : mixed
Parameters
- $itemId : mixed
- $userId : mixed
- $isPrevious : mixed = false
Tags
vote()
Perform vote action on the poll
public
vote(mixed $itemId, mixed $userId) : mixed
Parameters
- $itemId : mixed
- $userId : mixed