~ubuntu-branches/debian/sid/bugzilla/sid

« back to all changes in this revision

Viewing changes to docs/html/api/Bugzilla/Keyword.html

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Bossek
  • Date: 2008-06-27 22:34:34 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080627223434-0ib57vstn43bb4a3
Tags: 3.0.4.1-1
* Update of French, Russian and German translations. (closes: #488251)
* Added Bulgarian and Belarusian translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
 
<html>
3
 
  <head>
4
 
    <title>
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" >
8
 
 
9
 
</head>
10
 
  <body id="pod">
11
 
<p class="backlinktop"><b><a name="___top" href="../index.html" accesskey="1" title="All Documents">&lt;&lt;</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>
19
 
</ul>
20
 
</div>
21
 
 
22
 
<h1><a class='u' href='#___top' title='click to go to top of document'
23
 
name="NAME"
24
 
>NAME</a></h1>
25
 
 
26
 
<p>Bugzilla::Keyword - A Keyword that can be added to a bug.</p>
27
 
 
28
 
<h1><a class='u' href='#___top' title='click to go to top of document'
29
 
name="SYNOPSIS"
30
 
>SYNOPSIS</a></h1>
31
 
 
32
 
<pre  class="code"> use Bugzilla::Keyword;
33
 
 
34
 
 my $count = Bugzilla::Keyword::keyword_count;
35
 
 
36
 
 my $description = $keyword-&#62;description;
37
 
 
38
 
 my $keywords = Bugzilla::Keyword-&#62;get_all_with_bug_count();</pre>
39
 
 
40
 
<h1><a class='u' href='#___top' title='click to go to top of document'
41
 
name="DESCRIPTION"
42
 
>DESCRIPTION</a></h1>
43
 
 
44
 
<p>Bugzilla::Keyword represents a keyword that can be added to a bug.</p>
45
 
 
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>
48
 
 
49
 
<h1><a class='u' href='#___top' title='click to go to top of document'
50
 
name="SUBROUTINES"
51
 
>SUBROUTINES</a></h1>
52
 
 
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>
55
 
 
56
 
<dl>
57
 
<dt><a name="keyword_count()"
58
 
><code  class="code">keyword_count()</code></a></dt>
59
 
 
60
 
<dd>
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.
64
 
 Params:      none
65
 
 Returns:     An integer, the count of keywords.</pre>
66
 
 
67
 
<dt><a name="get_all_with_bug_count()"
68
 
><code  class="code">get_all_with_bug_count()</code></a></dt>
69
 
 
70
 
<dd>
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.
75
 
 Params:      none
76
 
 Returns:     A reference to an array of Keyword objects, or an empty
77
 
              arrayref if there are no keywords.</pre>
78
 
</dd>
79
 
</dl>
80
 
<p class="backlinkbottom"><b><a name="___bottom" href="../index.html" title="All Documents">&lt;&lt;</a></b></p>
81
 
 
82
 
<!-- end doc -->
83
 
 
84
 
</body></html>