Constants

PREG_TEXTINPUT

PREG_TEXTINPUT

Input check constants

PREG_TEXTAREA

PREG_TEXTAREA

PREG_NUMBER

PREG_NUMBER

MAXL_NUMBER

MAXL_NUMBER

Max inputs lenghts

MAXL_TEXTINPUT

MAXL_TEXTINPUT

MAXL_TEXTAREA

MAXL_TEXTAREA

MAX_TERMINE

MAX_TERMINE

MAX_POLLS

MAX_POLLS

Max number of polls

Properties

$data

$data : 

Form data storage

Type

$errormsg

$errormsg : 

Type

Methods

checkForPostData()

checkForPostData() 

Checks if there was data from the new poll form send.

__construct()

__construct() 

Creates PollCreator

createPollByPostData()

createPollByPostData() : \(bool)

Creates a new poll by POST data

Returns

\(bool) —

able to create? if no, see ->errorMessage() else, see ->getAdminLink()

getAdminLink()

getAdminLink() : \the

Gets the link to the admin interface for the new generated poll

Returns

\the —

link, only if poll created

errorMessage()

errorMessage() 

Returns a error message, if no poll was created

validateInput()

validateInput() 

Checks POST data, moves to this->data and does basic cleanup

sendNewPollMail()

sendNewPollMail() 

Checks if a mail should be send, when a new poll was created And sends the mail.