Adventure Documentation

PollController extends PageCommonController
in package

This controller describes the behavior of Poll entities.

Use the controller to generate a collection of Poll entities.

Tags
see
Poll

Main entity of collection

Table of Contents

__construct()  : mixed
getPollData()  : string
Get Poll data, questions and options
isVoteCast()  : bool
Get visitors voting status (user or ip-check)
voteCount()  : int
Get Poll vote count

Methods

__construct()

public __construct([mixed $parseUriParameters = false ]) : mixed
Parameters
$parseUriParameters : mixed = false
Tags
Return values
mixed

getPollData()

Get Poll data, questions and options

public getPollData(mixed $PollId[, mixed $LanguageIso = null ]) : string
Parameters
$PollId : mixed
$LanguageIso : mixed = null
Tags
Return values
string

isVoteCast()

Get visitors voting status (user or ip-check)

public isVoteCast(mixed $PollId[, mixed $UserId = '' ]) : bool
Parameters
$PollId : mixed
$UserId : mixed = ''
Tags
Return values
bool

True if the User already has cast a vote

voteCount()

Get Poll vote count

public voteCount(mixed $PollId[, mixed $SpecificAnswer = null ]) : int
Parameters
$PollId : mixed
$SpecificAnswer : mixed = null
Tags
Return values
int

        

Search results