\PollForm
Synopsis
class PollForm
extends Form
{
- // members
- public static boolean $show_results_link = false;
- public static string $redirect_to_anchor = 'SSPoll';
- protected $poll;
- protected array $chartOptions = ;
- // methods
- public void __construct()
- public void submitPoll()
- public void forTemplate()
- public void setChartOption()
- public void getChartOption()
- public void Poll()
- public void isForcedDisplay()
- public void getShouldShowResults()
- public void getShowResultsLink()
- public string getChart()
Hierarchy
Extends
- Form
Members
protected
- $chartOptions
- $poll
public
-
$redirect_to_anchor
After submission, redirect back to the # anchor. Set to null to disable the feature. - $show_results_link
Methods
public
- __construct()
- Poll() — Access the Poll object associated with this form
- forTemplate() — Renders the poll using the PollForm.ss
- getChart() — URL to an chart image that is render by Google Chart API
- getChartOption() — Access the default chart options
- getShouldShowResults() — Collate the information from PollForm and Poll to figure out if the results should be shown.
- getShowResultsLink() — Get current configuration so it can be used in the template
- isForcedDisplay() — Check if user bypassed the voting form and requested to see the results.
- setChartOption() — Set the default chart options
- submitPoll()