Next:
Yawns::Comment
Previous:
Yawns::Articles
 [Table of Contents]

Yawns::Bookmarks



NAME

Yawns::Bookmarks - A module for working with user bookmarks.

SYNOPSIS

    #!/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 );

DESCRIPTION

This module contains code for adding, removing, and fetching bookmarks from the database.

new

  Create a new instance of this object.

add

  Add a new bookmark, be it a poll, a weblog entry, or an article.

get

  Get the bookmarks for the given user.

count

  Count the number of bookmarks the given user owns.

remove

  Remove the given bookmark.

deleteByUser

  Delete every bookmark the given user has.

invalidateCache

  Invalidate the cache of this object.

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