| Next: Yawns::Permissions | Previous: Yawns::Messages | [Table of Contents] |
Yawns::News - A module for working with site-news.
#!/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" );
This module controls the news displayed upon the front-page.
Create a new instance of this object.
Find the most recent N items of news which are visible.
Find all news.
Add a new news item.
Remove an item of news from our feed.
Invalidate the cached information we contain.
Steve Kemp
http://www.steve.org.uk/
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.