Next:
Yawns::Preferences
Previous:
Yawns::Poll
 [Table of Contents]

Yawns::Polls



NAME

Yawns::Polls - A module for working with polls.

SYNOPSIS

    #!/usr/bin/perl -w

    use Yawns::Polls;
    use strict;

    my $polls = Yawns::Polls->new();

    $polls->add( question => "Does this work?",
                 author   => "Steve",
                 answers  => [ "one", "two", "three"] );

    my $current = $polls->getCurrentPoll();

DESCRIPTION

This module contains code for working with polls, finding the current one and adding a new one.

See Yawns::Poll for working with a particular poll.

new

  Create a new instance of this object.

add

  Add a new poll, which will go live immediately.

getCurrentPoll

  Return the ID of the current poll.

delete

 Delete an existing poll.

getPollArchive

  Return all the old polls in use.

invalidateCache

  Clean any cached content we might have.

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