add_poll
create_selection_list_polls
delete_poll
edit_poll
may_vote_in_poll
render_poll_box
set_poll
vote_in_poll
add_poll(\SHORT_TEXT $question, \SHORT_TEXT $a1, \SHORT_TEXT $a2, \SHORT_TEXT $a3= ''
, \SHORT_TEXT $a4= ''
, \SHORT_TEXT $a5= ''
, \SHORT_TEXT $a6= ''
, \SHORT_TEXT $a7= ''
, \SHORT_TEXT $a8= ''
, \SHORT_TEXT $a9= ''
, \SHORT_TEXT $a10= ''
, \?integer $num_options= null
, \BINARY $current= 0
, \BINARY $allow_rating= 1
, \SHORT_INTEGER $allow_comments= 1
, \BINARY $allow_trackbacks= 1
, \LONG_TEXT $notes= ''
, \?TIME $time= null
, \?MEMBER $submitter= null
, \?TIME $use_time= null
, integer $v1= 0
, integer $v2= 0
, integer $v3= 0
, integer $v4= 0
, integer $v5= 0
, integer $v6= 0
, integer $v7= 0
, integer $v8= 0
, integer $v9= 0
, integer $v10= 0
, integer $views= 0
, \?TIME $edit_date= null
) : \AUTO_LINK
package | polls |
---|---|
range | 1 max |
range | 1 max |
range | 2 5 |
range | 0 max |
range | 0 max |
range | 0 max |
range | 0 max |
range | 0 max |
range | 0 max |
range | 0 max |
range | 0 max |
range | 0 max |
range | 0 max |
\SHORT_TEXT
The question
\SHORT_TEXT
The first choice
\SHORT_TEXT
The second choice
\SHORT_TEXT
The third choice (blank means not a choice)
\SHORT_TEXT
The fourth choice (blank means not a choice)
\SHORT_TEXT
The fifth choice (blank means not a choice)
\SHORT_TEXT
The sixth choice (blank means not a choice)
\SHORT_TEXT
The seventh choice (blank means not a choice)
\SHORT_TEXT
The eighth choice (blank means not a choice)
\SHORT_TEXT
The ninth choice (blank means not a choice)
\SHORT_TEXT
The tenth choice (blank means not a choice)
\?integer
The number of choices (null: calculate)
\BINARY
Whether the poll is the current poll
\BINARY
Whether to allow rating of this poll
\SHORT_INTEGER
Whether comments are allowed (0=no, 1=yes, 2=review style)
\BINARY
Whether to allow trackbacking on this poll
\LONG_TEXT
Notes about this poll
\?TIME
The time the poll was submitted (null: now)
\?MEMBER
The member who submitted (null: the current member)
\?TIME
The time the poll was put to use (null: not put to use yet)
integer
How many have voted for option 1
integer
How many have voted for option 2
integer
How many have voted for option 3
integer
How many have voted for option 4
integer
How many have voted for option 5
integer
How many have voted for option 6
integer
How many have voted for option 7
integer
How many have voted for option 8
integer
How many have voted for option 9
integer
How many have voted for option 10
integer
The number of views had
\?TIME
The edit date (null: never)
\AUTO_LINK
The poll ID of our new pollcreate_selection_list_polls(\?AUTO_LINK $it= null
, \?MEMBER $only_owned= null
) : \Tempcode
package | polls |
---|
\?AUTO_LINK
The ID of the poll to select by default (null: first)
\?MEMBER
Only show polls owned by this member (null: no such restriction)
\Tempcode
The listdelete_poll(\AUTO_LINK $id)
edit_poll(\AUTO_LINK $id, \SHORT_TEXT $question, \SHORT_TEXT $a1, \SHORT_TEXT $a2, \SHORT_TEXT $a3, \SHORT_TEXT $a4, \SHORT_TEXT $a5, \SHORT_TEXT $a6, \SHORT_TEXT $a7, \SHORT_TEXT $a8, \SHORT_TEXT $a9, \SHORT_TEXT $a10, integer $num_options, \BINARY $allow_rating, \SHORT_INTEGER $allow_comments, \BINARY $allow_trackbacks, \LONG_TEXT $notes, \?TIME $edit_time= null
, \?TIME $add_time= null
, \?integer $views= null
, \?MEMBER $submitter= null
, boolean $null_is_literal= false
)
package | polls |
---|---|
range | 1 max |
range | 1 max |
\AUTO_LINK
The ID of the poll to edit
\SHORT_TEXT
The question
\SHORT_TEXT
The first choice
\SHORT_TEXT
The second choice
\SHORT_TEXT
The third choice (blank means not a choice)
\SHORT_TEXT
The fourth choice (blank means not a choice)
\SHORT_TEXT
The fifth choice (blank means not a choice)
\SHORT_TEXT
The sixth choice (blank means not a choice)
\SHORT_TEXT
The seventh choice (blank means not a choice)
\SHORT_TEXT
The eighth choice (blank means not a choice)
\SHORT_TEXT
The ninth choice (blank means not a choice)
\SHORT_TEXT
The tenth choice (blank means not a choice)
integer
The number of choices
\BINARY
Whether to allow rating of this poll
\SHORT_INTEGER
Whether comments are allowed (0=no, 1=yes, 2=review style)
\BINARY
Whether to allow trackbacking on this poll
\LONG_TEXT
Notes about this poll
\?TIME
Edit time (null: either means current time, or if $null_is_literal, means reset to to NULL)
\?TIME
Add time (null: do not change)
\?integer
Number of views (null: do not change)
\?MEMBER
Submitter (null: do not change)
boolean
Determines whether some NULLs passed mean 'use a default' or literally mean 'set to NULL'
may_vote_in_poll(\AUTO_LINK $poll_id, \MEMBER $member_id, \?IP $ip) : boolean
package | polls |
---|
\AUTO_LINK
The poll ID
\MEMBER
Who to check for
\?IP
The IP to check for (null: no IP check)
boolean
Whether the current member may voterender_poll_box(boolean $results, array $myrow, \ID_TEXT $zone= '_SEARCH'
, boolean $include_manage_links= false
, boolean $give_context= true
, \ID_TEXT $guid= ''
) : \Tempcode
package | polls |
---|
boolean
Whether to show results (if we've already voted, this'll be overridden)
array
The poll row
\ID_TEXT
The zone our poll module is in
boolean
Whether to include extra management links (e.g. editing, choosing, archive, etc)
boolean
Whether to include context (i.e. say WHAT this is, not just show the actual content)
\ID_TEXT
Overridden GUID to send to templates (blank: none)
\Tempcode
The boxvote_in_poll(\AUTO_LINK $poll_id, \?integer $cast, \?array $myrow= null
, \?MEMBER $member_id= null
, \?IP $ip= null
) : array
package | polls |
---|
\AUTO_LINK
The poll ID
\?integer
Vote to cast (null: forfeit vote)
\?array
Poll row (null: lookup from DB)
\?MEMBER
Who to vote (null: current user)
\?IP
The IP to vote (null: no IP check)
array
Amended poll row