\Poll
Poll object This is a simplified version of
- Author: Simon 'Sphere' Erkelens
Synopsis
class Poll
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_many = ;
- private static array $summary_fields = ;
- private static string $default_sort = "Enddate DESC";
- // methods
- public void getCMSFields()
- public boolean isVoted()
- public void markAsVoted()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $default_sort
- $has_many
- $summary_fields
Methods
public
- getCMSFields()
- isVoted() — Check if already voted.
- markAsVoted() — Mark the the poll has been voted by the user, which determined by browser Cookie or Session