TIP_Poll
Introduction
Poll module
- Source file
- /Type/module/content/poll.php
- Extends
- TIP_Content
Properties
vote_template : string
The template to run to confirm the vote
- access
- protected
expiration : string
The expiration time for the vote
- access
- protected
Methods
checkOptions (&$options)
- &$options
- lines
- 45 - 55
- static
- yes
- access
- protected
__construct ($options)
Constructor
- $options
- array
Properties values
- lines
- 64 - 67
- access
- protected
Initializes a TIP_Poll instance.
actionVote ($id, $answer) : bool
Perform a vote action
- $id
- int
The poll id
- $answer
- int
The answer id
- lines
- 82 - 122
- access
- protected
Runs the 'vote_template' template to get a confirmation on the vote and adds the vote if confirmed.
runAction ($action)
- $action
- lines
- 124 - 136
- access
- protected
TIP_Poll
was last modified by
TiP
on
Mon 25 May 2009 06:22:25 PM CEST