Next:
Yawns::CommentTest
Previous:
Yawns::Comment::Notifier
 [Table of Contents]

Yawns::Comments



NAME

Yawns::Comments - A module for working with comments upon something..

SYNOPSIS

    #!/usr/bin/perl -w

    use Yawns::Comments;
    use strict;

    my $comments = Yawns::Comments->new( article => 40 );

    my $data = $comments->get( $);

DESCRIPTION

This module contains code for dealing with a collection of comments.

The comments might be upon a weblog entry, a poll, or an article.

new

  Create a new instance of this object.

get

  Return the comments associated with a given article, poll, or weblog
 entry.

getRecent

  Return the most recent comments posted, this is used for the recent
 comments RSS feed.

getRecentByUser

  Return the most recent comments posted by the given user.

getReported

  Return the most recent comments which have been reported.

  This is used for an RSS feed.

getCommentFeed

  Return the a hash of comments suitable for the RSS feeds.

_getCommentFeed

  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_article_comments

 Get and arrange the comments for an article

_get_weblog_comments

  Get all weblog comments for the given entry.

_get_comments

   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.

invalidateCache

  Invalidate any cached comments in memory.

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