Prototype PollMgr |
|
Actions |
create_action action for creating new Polls |
main_action main action |
mypolls_action main action |
open_action main action |
Functions |
checkAccess(action, usr, level) permission check (called by hopobject.onRequest()) |
checkAdd(usr, level) function checks if user is allowed to view the storylist of this site |
closePoll(currPoll) set a poll to closed state |
deletePoll(pollObj) delete a poll and all its choices and votes |
evalNewPoll(question, choices, creator) check if poll is ok. if true, save new Poll |
Skins |
main.skin response.pagenavigation, response.pollList |
type.properties |
## ## collections ## _children = collection(Poll) _children.local = SITE_ID _children.foreign = POLL_F_SITE _children.order = POLL_CREATETIME desc open = collection(Poll) open.local = SITE_ID open.foreign = POLL_F_SITE open.filter = POLL_CLOSED != 1 open.order = POLL_CREATETIME desc |