1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
Bugzilla::Component</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::Component</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='#METHODS'>METHODS</a>
19
<li class='indexItem indexItem1'><a href='#SUBROUTINES'>SUBROUTINES</a>
23
<h1><a class='u' href='#___top' title='click to go to top of document'
27
<p>Bugzilla::Component - Bugzilla product component class.</p>
29
<h1><a class='u' href='#___top' title='click to go to top of document'
33
<pre class="code"> use Bugzilla::Component;
35
my $component = new Bugzilla::Component(1);
36
my $component = new Bugzilla::Component({product => $product,
37
name => 'AcmeComp'});
39
my $bug_count = $component->bug_count();
40
my $bug_ids = $component->bug_ids();
41
my $id = $component->id;
42
my $name = $component->name;
43
my $description = $component->description;
44
my $product_id = $component->product_id;
45
my $default_assignee = $component->default_assignee;
46
my $default_qa_contact = $component->default_qa_contact;
47
my $initial_cc = $component->initial_cc;
48
my $product = $component->product;
49
my $bug_flag_types = $component->flag_types->{'bug'};
50
my $attach_flag_types = $component->flag_types->{'attachment'};
52
my $component = Bugzilla::Component::check_component($product, 'AcmeComp');</pre>
54
<h1><a class='u' href='#___top' title='click to go to top of document'
58
<p>Component.pm represents a Product Component object.</p>
60
<h1><a class='u' href='#___top' title='click to go to top of document'
65
<dt><a name="new($param)"
66
><code class="code">new($param)</code></a></dt>
69
<pre class="code"> Description: The constructor is used to load an existing component
70
by passing a component id or a hash with the product
71
id and the component name.
73
Params: $param - If you pass an integer, the integer is the
74
component id from the database that we want to
75
read in. If you pass in a hash with 'name' key,
76
then the value of the name key is the name of a
77
component from the DB.
79
Returns: A Bugzilla::Component object.</pre>
81
<dt><a name="bug_count()"
82
><code class="code">bug_count()</code></a></dt>
85
<pre class="code"> Description: Returns the total of bugs that belong to the component.
89
Returns: Integer with the number of bugs.</pre>
91
<dt><a name="bugs_ids()"
92
><code class="code">bugs_ids()</code></a></dt>
95
<pre class="code"> Description: Returns all bug IDs that belong to the component.
99
Returns: A reference to an array of bug IDs.</pre>
101
<dt><a name="default_assignee()"
102
><code class="code">default_assignee()</code></a></dt>
105
<pre class="code"> Description: Returns a user object that represents the default assignee for
110
Returns: A Bugzilla::User object.</pre>
112
<dt><a name="default_qa_contact()"
113
><code class="code">default_qa_contact()</code></a></dt>
116
<pre class="code"> Description: Returns a user object that represents the default QA contact for
121
Returns: A Bugzilla::User object.</pre>
123
<dt><a name="initial_cc"
124
><code class="code">initial_cc</code></a></dt>
127
<p>Returns an arrayref of <a href="../Bugzilla/User.html" class="podlinkpod"
128
>Bugzilla::User</a> objects representing the Initial CC List.</p>
130
<dt><a name="flag_types()"
131
><code class="code">flag_types()</code></a></dt>
134
<pre class="code"> Description: Returns all bug and attachment flagtypes available for
139
Returns: Two references to an array of flagtype objects.</pre>
141
<dt><a name="product()"
142
><code class="code">product()</code></a></dt>
145
<pre class="code"> Description: Returns the product the component belongs to.
149
Returns: A Bugzilla::Product object.</pre>
153
<h1><a class='u' href='#___top' title='click to go to top of document'
155
>SUBROUTINES</a></h1>
158
<dt><a name="check_component($product,_$comp_name)"
159
><code class="code">check_component($product, $comp_name)</code></a></dt>
162
<pre class="code"> Description: Checks if the component name was passed in and if it is a valid
165
Params: $product - A Bugzilla::Product object.
166
$comp_name - String with a component name.
168
Returns: Bugzilla::Component object.</pre>
171
<p class="backlinkbottom"><b><a name="___bottom" href="../index.html" title="All Documents"><<</a></b></p>