Next:
Yawns::Bookmarks
Previous:
Yawns::Article
 [Table of Contents]

Yawns::Articles



NAME

Yawns::Articles - A module for working with several articles.

SYNOPSIS

    #!/usr/bin/perl -w

    use Yawns::Articles;
    use strict;

    my $article = Yawns::Articles->new();

    my $aresults = $article->searchFor( $terms);

    my $tresults = $article->searchTitlesFor( $terms);

DESCRIPTION

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

new

  Create a new instance of this object.

count()

  Count the total number of articles available.

searchByAuthor

  Return the results of an author search against the articles database.

getTeasers

 Get the first paragraph of the specified articles from the database

 NOTE:
   This is only used when generating the RDF feeds for the articles.
  this is why the body of the text is escaped with HTML::Entities.

getHeadlines

  Get the given headlines from the database

getPreviousHeadlines

 Get the previous site headlines from the site.

getArticles

  Return all the relevant articles for display upon the front page.

getArticleYears

  Return the years which have had at least one article posted in them

  This is an internal method used to expire the article archive cache.

getArchivedArticles

  Return the list of articles for the given period of time.

_format_date_rfc_3339

  Format a date and time from the database in RFC 3339 form.

 Note: This is only ever used in the Atom output in 'RSS.pl'

invalidateCache

  Clean any cached content we might have.

[Top] Generated by HTML::FromPod 0.49 on Fri Nov 21 03:03:57 2008