| Next: Yawns::CommentTest | Previous: Yawns::Comment::Notifier | [Table of Contents] |
Yawns::Comments - A module for working with comments upon something..
#!/usr/bin/perl -w
use Yawns::Comments;
use strict;
my $comments = Yawns::Comments->new( article => 40 );
my $data = $comments->get( $);
This module contains code for dealing with a collection of comments.
The comments might be upon a weblog entry, a poll, or an article.
Create a new instance of this object.
Return the comments associated with a given article, poll, or weblog entry.
Return the most recent comments posted, this is used for the recent comments RSS feed.
Return the most recent comments posted by the given user.
Return the most recent comments which have been reported. This is used for an RSS feed.
Return the a hash of comments suitable for the RSS feeds.
Fetch the comments for a feed on a poll, weblog, or blog entry. This routine manages the caching, and the fetching from the database.
Get and arrange the comments for an article
Get all weblog comments for the given entry.
Get the comments for a particular poll, or article.
Type is 'a' for article comments.
or 'p' for poll comments.
or 'w' for weblog comments
'Enabled' is whether replies are ellowed for the given poll or
article.
Invalidate any cached comments in memory.