Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: overlays/poll.php

class Poll extends Overlay - Describe one poll

Normally, a poll appears at the front page only to let people vote.

However, you can select to also display raw results by adding the keyword 'poll_with_results' in the field for options of the containing article.

This script is a reference file of this system.

Licence: GNU Lesser General Public License

Auteurs:

Testeurs:

Reste à faire:

get_fields() - Build the list of fields for one overlay

function get_fields($host, $capability='?')



Voir aussi:

get_label() - Get an overlaid label

function get_label($label, $action='view')

Accepted action codes:

Voir aussi:

get_text() - Display the content of one poll

function get_text($variant='view', $host=NULL)

Accepted variant: else display the voting form

Voir aussi:

get_text_to_list() - Show voting form and raw results

function get_text_to_list($host=NULL, $enable_votes=TRUE)

get_text_to_view() - Fully describe a poll in its main page

function get_text_to_view($host=NULL, $enable_votes=TRUE)

This also features a voting form, to let people vote from permalinks.

Voir aussi:

get_text_to_vote() - Get the text to make people vote

function get_text_to_vote($host=NULL, $enable_votes=TRUE)

parse_fields() - Retrieve the content of one modified overlay

function parse_fields($fields)



Voir aussi:

Tools
Browse the source of this script
Server software