1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
Bugzilla::Milestone</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::Milestone</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::Milestone - Bugzilla product milestone class.</p>
29
<h1><a class='u' href='#___top' title='click to go to top of document'
33
<pre class="code"> use Bugzilla::Milestone;
35
my $milestone = new Bugzilla::Milestone(
36
{ product => $product, name => 'milestone_value' });
38
my $product_id = $milestone->product_id;
39
my $value = $milestone->value;
41
my $milestone = $hash_ref->{'milestone_value'};</pre>
43
<h1><a class='u' href='#___top' title='click to go to top of document'
47
<p>Milestone.pm represents a Product Milestone object.</p>
49
<h1><a class='u' href='#___top' title='click to go to top of document'
54
<dt><a name="new($product_id,_$value)"
55
><code class="code">new($product_id, $value)</code></a></dt>
58
<pre class="code"> Description: The constructor is used to load an existing milestone
59
by passing a product id and a milestone value.
61
Params: $product_id - Integer with a Bugzilla product id.
62
$value - String with a milestone value.
64
Returns: A Bugzilla::Milestone object.</pre>
66
<dt><a name="bug_count()"
67
><code class="code">bug_count()</code></a></dt>
70
<pre class="code"> Description: Returns the total of bugs that belong to the milestone.
74
Returns: Integer with the number of bugs.</pre>
78
<h1><a class='u' href='#___top' title='click to go to top of document'
83
<dt><a name="check_milestone($product,_$milestone_name)"
84
><code class="code">check_milestone($product, $milestone_name)</code></a></dt>
87
<pre class="code"> Description: Checks if a milestone name was passed in
88
and if it is a valid milestone.
90
Params: $product - Bugzilla::Product object.
91
$milestone_name - String with a milestone name.
93
Returns: Bugzilla::Milestone object.</pre>
96
<p class="backlinkbottom"><b><a name="___bottom" href="../index.html" title="All Documents"><<</a></b></p>