From b9959b5da2d4615090bfcf8a16f74bfd7cbb43f9 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 1 Apr 2009 03:22:21 +0000 Subject: [PATCH] POD for Keyword module to bring it to 100% coverage. --- lib/WebGUI/Keyword.pm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/lib/WebGUI/Keyword.pm b/lib/WebGUI/Keyword.pm index 624226c0f..3014ea86b 100644 --- a/lib/WebGUI/Keyword.pm +++ b/lib/WebGUI/Keyword.pm @@ -88,6 +88,34 @@ sub deleteKeyword { $self->session->db->write("delete from assetKeyword where keyword=?", [$options->{keyword}]); } +#------------------------------------------------------------------- + +=head2 findKeywords ( $options ) + +Find keywords. + +=head3 $options + +A hashref of options to change the behavior of the method. + +=head4 asset + +Find all keywords for all assets below an asset, providing a WebGUI::Asset object. + +=head4 assetId + +Find all keywords for all assets below an asset, providing an assetId. + +=head4 search + +Find all keywords using the SQL clause LIKE. This can be used in tandem with asset or assetId. + +=head4 limit + +Limit the number of keywords that are returned. + +=cut + sub findKeywords { my $self = shift; my $options = shift;