1BZ::Client::Product(3)User Contributed Perl DocumentationBZ::Client::Product(3)
2
3
4

NAME

6         BZ::Client::Product - Client side representation of a product in Bugzilla
7
8       This class provides methods for accessing and managing products in
9       Bugzilla. Instances of this class are returned by
10       BZ::Client::Product::get.
11

SYNOPSIS

13         my $client = BZ::Client->new("url" => $url,
14                                      "user" => $user,
15                                      "password" => $password);
16         my $ids = BZ::Client::Product->get_accessible_products($client);
17         my $products = BZ::Client::Product->get($client, $ids);
18

CLASS METHODS

20       This section lists the class methods, which are available in this
21       module.
22
23   get_selectable_products
24         my @products = BZ::Client::Product->get_selectable_products($client);
25
26       Returns a list of the ids of the products the user can search on.
27
28   get_enterable_products
29         my @products = BZ::Client::Product->get_selectable_products($client);
30
31       Returns a list of the ids of the products the user can enter bugs
32       against.
33
34   get_accessible_products
35         my @products = BZ::Client::Product->get_selectable_products($client);
36
37       Returns a list of the ids of the products the user can search or enter
38       bugs against.
39
40   get
41         my @products = BZ::Client::Product->get($client, \@ids);
42
43       Returns a list of BZ::Client::Product instances with the product ID's
44       mentioned in the list @ids.
45
46   new
47         my $product = BZ::Client->Product->new("id" => $id,
48                                                "name" => $name,
49                                                "description" => $description);
50
51       Creates a new instance with the given ID, name, and description.
52

INSTANCE METHODS

54       This section lists the modules instance methods.
55
56   id
57         my $id = $product->id();
58         $product->id($id);
59
60       Gets or sets the products ID.
61
62   name
63         my $name = $product->name();
64         $product->name($name);
65
66       Gets or sets the products name.
67
68   description
69         my $description = $product->description();
70         $product->description($description);
71
72       Gets or sets the products description.
73

SEE ALSO

75         L<BZ::Client>, L<BZ::Client::API>
76
77
78
79perl v5.12.0                      2009-06-23            BZ::Client::Product(3)
Impressum