Next:
Yawns::Permissions
Previous:
Yawns::Messages
 [Table of Contents]

Yawns::News



NAME

Yawns::News - A module for working with site-news.

SYNOPSIS

    #!/usr/bin/perl -w

    use Yawns::News;
    use strict;

    #
    #  Get handle
    #
    my $news = Yawns::News->new();

    #
    #  Get recent news.
    #
    my $recent = $news->getRecent();

    #
    #  Post new news.
    #
    $news->addNews( news   => "This is a test",
                    status => "visible" );

DESCRIPTION

This module controls the news displayed upon the front-page.

new

  Create a new instance of this object.

getRecent

  Find the most recent N items of news which are visible.

getAllNews

  Find all news.

addNews

  Add a new news item.

deleteNews

  Remove an item of news from our feed.

invalidateCache

  Invalidate the cached information we contain.

AUTHOR

Steve Kemp

http://www.steve.org.uk/

LICENSE

Copyright (c) 2005,2006 by Steve Kemp. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license.


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