\Poll

Summary

Methods
Properties
Constants
__construct()
checkSend()
saveSendData()
showPollForm()
getError()
No public properties found
PREG_NAME
PREG_MAIL
MAXL_NAME
MAXL_MAIL
MAX_SUBMISSIONS
No protected methods found
No protected properties found
N/A
No private methods found
$polldata
$pollsub
$configjson
$id
$error
N/A

Constants

PREG_NAME

PREG_NAME

Regex for Name and E-Mail address

PREG_MAIL

PREG_MAIL

MAXL_NAME

MAXL_NAME

Max string length for Name and Mail

MAXL_MAIL

MAXL_MAIL

MAX_SUBMISSIONS

MAX_SUBMISSIONS

Max number of submissions per poll

Properties

$polldata

$polldata : 

Type

$pollsub

$pollsub : 

Type

$configjson

$configjson : 

Type

$id

$id : 

Type

$error

$error : 

Type

Methods

__construct()

__construct(  $pollid) 

Generate poll participate by poll id

Parameters

$pollid

checkSend()

checkSend() : boolean

Check if poll participation form send.

Returns

boolean —

send?

saveSendData()

saveSendData(  $template) 

Saves the send data from poll part form.

Parameters

$template

the main template

showPollForm()

showPollForm(  $template) 

Show the form to fill out the poll

Parameters

$template

the poll template

getError()

getError() 

Getting the error, if saveSendData returned false