| Next: Yawns::User | Previous: Yawns::Submissions | [Table of Contents] |
Yawns::Tags - A module for working with all the tags used upon the site.
#!/usr/bin/perl -w
use Yawns::Tags;
use strict;
# Get all tags used upon this site.
my $holder = Yawns::Tags->new();
my $all_tags = $holder->getAllTags();
This module contains code for working with the combined list of tags used upon the site.
Tags may be placed upon three things:
So far there is a fair amount of duplication within this class, and there is some poor organisation, this will be resolved shortly.
Create a new instance of this object.
Return an array of tags used upon a given article, poll, submission, or weblog entry.
Add a tag to the given article, poll, submission, or weblog entry.
Delete all tags on the given article, poll, submission, or weblog.
Move any tags which are associated with a pending submission from that onto the article which has just been posted. This preserves the tag content, and the tag owner.
Return a hash of all the tags which have been applied upon this site. This makes no distinction between the target of the tag. (The type argument is optional.)
Return all the tags upon the given element, by type.
Return a hash of all the tags added recently. This includes those added to articles, polls, submissions, and weblog entries.
Return the type of tags which are in use upon the site.
Find all items which match the given tag.
Get tags related to the specified one.
Invalidate the cache of recent weblogs.
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.