1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
Bugzilla::Keyword</title>
6
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7
<link rel="stylesheet" title="style" type="text/css" href="../style.css" media="all" >
11
<p class="backlinktop"><b><a name="___top" href="../index.html" accesskey="1" title="All Documents"><<</a></b></p>
12
<h1>Bugzilla::Keyword</h1>
13
<div class='indexgroup'>
14
<ul class='indexList indexList1'>
15
<li class='indexItem indexItem1'><a href='#NAME'>NAME</a>
16
<li class='indexItem indexItem1'><a href='#SYNOPSIS'>SYNOPSIS</a>
17
<li class='indexItem indexItem1'><a href='#DESCRIPTION'>DESCRIPTION</a>
18
<li class='indexItem indexItem1'><a href='#SUBROUTINES'>SUBROUTINES</a>
22
<h1><a class='u' href='#___top' title='click to go to top of document'
26
<p>Bugzilla::Keyword - A Keyword that can be added to a bug.</p>
28
<h1><a class='u' href='#___top' title='click to go to top of document'
32
<pre class="code"> use Bugzilla::Keyword;
34
my $count = Bugzilla::Keyword::keyword_count;
36
my $description = $keyword->description;
38
my $keywords = Bugzilla::Keyword->get_all_with_bug_count();</pre>
40
<h1><a class='u' href='#___top' title='click to go to top of document'
44
<p>Bugzilla::Keyword represents a keyword that can be added to a bug.</p>
46
<p>This implements all standard <code class="code">Bugzilla::Object</code> methods. See <a href="../Bugzilla/Object.html" class="podlinkpod"
47
>Bugzilla::Object</a> for more details.</p>
49
<h1><a class='u' href='#___top' title='click to go to top of document'
53
<p>This is only a list of subroutines specific to <code class="code">Bugzilla::Keyword</code>. See <a href="../Bugzilla/Object.html" class="podlinkpod"
54
>Bugzilla::Object</a> for more subroutines that this object implements.</p>
57
<dt><a name="keyword_count()"
58
><code class="code">keyword_count()</code></a></dt>
61
<pre class="code"> Description: A utility function to get the total number
62
of keywords defined. Mostly used to see
63
if there are any keywords defined at all.
65
Returns: An integer, the count of keywords.</pre>
67
<dt><a name="get_all_with_bug_count()"
68
><code class="code">get_all_with_bug_count()</code></a></dt>
71
<pre class="code"> Description: Returns all defined keywords. This is an efficient way
72
to get the associated bug counts, as only one SQL query
73
is executed with this method, instead of one per keyword
74
when calling get_all and then bug_count.
76
Returns: A reference to an array of Keyword objects, or an empty
77
arrayref if there are no keywords.</pre>
80
<p class="backlinkbottom"><b><a name="___bottom" href="../index.html" title="All Documents"><<</a></b></p>