| Next: Yawns::Comment | Previous: Yawns::Articles | [Table of Contents] |
Yawns::Bookmarks - A module for working with user bookmarks.
#!/usr/bin/perl -w
use Yawns::Bookmarks;
use strict;
my $bookmarks = Yawns::Bookmarks->new( username => "Steve" );
my $id = $bookmarks->add( article => 123 );
$bookmarks->remove( id => $id );
This module contains code for adding, removing, and fetching bookmarks from the database.
Create a new instance of this object.
Add a new bookmark, be it a poll, a weblog entry, or an article.
Get the bookmarks for the given user.
Count the number of bookmarks the given user owns.
Remove the given bookmark.
Delete every bookmark the given user has.
Invalidate the cache of this object.
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.