]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Initial checkin of Poll plugin: micro-app to post mini polls/surveys from the notice...
authorBrion Vibber <brion@pobox.com>
Tue, 8 Mar 2011 05:28:36 +0000 (21:28 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 8 Mar 2011 05:28:36 +0000 (21:28 -0800)
commit3438a78c023d84c344200b5f2794c37ead83e539
treef1af0cdef99239ae3a8d102a4657a67dec7e50f7
parentb9e2c727404b603bb97dc7c6ef75e3244c4506f3
Initial checkin of Poll plugin: micro-app to post mini polls/surveys from the notice form.

This version is fairly basic; votes do not (yet) show a reply, they just got in the table. No pretty graphs for the results yet, just text.
The ActivityStream output is temporary and probably should be replaced; the current structures for adding custom data aren't really ready yet (especially since we need to cover JSON and Atom formats, probably pretty differently)

Uses similar system as Bookmark for attaching to notices -- saves a custom URI for an alternate action, which we can then pass in and hook back up to our poll object. This can probably do with a little more simplification in the parent MicroAppPlugin class.

Currently adds two tables:
- poll holds the main poll info: id and URI to associate with the notice, then the question and a text blob with the options.
- poll_response records the selections picked by our nice fellows.

Hopefully no off-by-one bugs left in the selection, but I give no guarantees. ;)
Some todo notes in the README and in doc comments.
plugins/Poll/Poll.php [new file with mode: 0644]
plugins/Poll/PollPlugin.php [new file with mode: 0644]
plugins/Poll/Poll_response.php [new file with mode: 0644]
plugins/Poll/README [new file with mode: 0644]
plugins/Poll/newpoll.php [new file with mode: 0644]
plugins/Poll/newpollform.php [new file with mode: 0644]
plugins/Poll/pollresponseform.php [new file with mode: 0644]
plugins/Poll/pollresultform.php [new file with mode: 0644]
plugins/Poll/respondpoll.php [new file with mode: 0644]
plugins/Poll/showpoll.php [new file with mode: 0644]