| Next: Yawns::Bookmarks | Previous: Yawns::Article | [Table of Contents] |
Yawns::Articles - A module for working with several articles.
#!/usr/bin/perl -w
use Yawns::Articles;
use strict;
my $article = Yawns::Articles->new();
my $aresults = $article->searchFor( $terms);
my $tresults = $article->searchTitlesFor( $terms);
This module contains code for dealing with a collection of articles.
Create a new instance of this object.
Count the total number of articles available.
Return the results of an author search against the articles database.
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.
Get the given headlines from the database
Get the previous site headlines from the site.
Return all the relevant articles for display upon the front page.
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.
Return the list of articles for the given period of time.
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'
Clean any cached content we might have.