| Next: Yawns::Polls | Previous: Yawns::Permissions | [Table of Contents] |
Yawns::Poll - A module for working with a specific poll.
#!/usr/bin/perl -w
use Yawns::Poll;
use strict;
my $poll = Yawns::Poll->new( id => 2 );
my $commentCount = $poll->commentCount();
This module contains code for dealing with a single poll upon the site.
Create a new instance of this object.
Return the number of comments upon the given poll.
Get the questions and current answers from the given poll. Note: you should use getTitle if you only care about the title.
Allow the user to vote upon a poll.
Find and return the title of the current poll.
Find and return the number of votes made upon this poll.
Clean any cached content we might have.
Steve Kemp
http://www.steve.org.uk/
Copyright (c) 2005,2006 by Steve Kemp. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license.