Next:
Yawns::Polls
Previous:
Yawns::Permissions
 [Table of Contents]

Yawns::Poll



NAME

Yawns::Poll - A module for working with a specific poll.

SYNOPSIS

    #!/usr/bin/perl -w

    use Yawns::Poll;
    use strict;

    my $poll = Yawns::Poll->new( id => 2 );

    my $commentCount = $poll->commentCount();

DESCRIPTION

This module contains code for dealing with a single poll upon the site.

new

  Create a new instance of this object.

commentCount

  Return the number of comments upon the given poll.

get

  Get the questions and current answers from the given poll.

  Note: you should use getTitle if you only care about the title.

vote

  Allow the user to vote upon a poll.

getTitle

  Find and return the title of the current poll.

getVoteCount

  Find and return the number of votes made upon this poll.

invalidateCache

  Clean any cached content we might have.

AUTHOR

Steve Kemp

http://www.steve.org.uk/

LICENSE

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.


[Top] Generated by HTML::FromPod 0.49 on Tue Jan 6 03:03:57 2009