1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
Bugzilla::Group</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::Group</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
<li class='indexItem indexItem1'><a href='#METHODS'>METHODS</a>
23
<h1><a class='u' href='#___top' title='click to go to top of document'
27
<p>Bugzilla::Group - Bugzilla group class.</p>
29
<h1><a class='u' href='#___top' title='click to go to top of document'
33
<pre class="code"> use Bugzilla::Group;
35
my $group = new Bugzilla::Group(1);
36
my $group = new Bugzilla::Group({name => 'AcmeGroup'});
38
my $id = $group->id;
39
my $name = $group->name;
40
my $description = $group->description;
41
my $user_reg_exp = $group->user_reg_exp;
42
my $is_active = $group->is_active;
43
my $is_active_bug_group = $group->is_active_bug_group;
45
my $group_id = Bugzilla::Group::ValidateGroupName('admin', @users);
46
my @groups = Bugzilla::Group->get_all;</pre>
48
<h1><a class='u' href='#___top' title='click to go to top of document'
52
<p>Group.pm represents a Bugzilla Group object. It is an implementation of <a href="../Bugzilla/Object.html" class="podlinkpod"
53
>Bugzilla::Object</a>, and thus has all the methods that <a href="../Bugzilla/Object.html" class="podlinkpod"
54
>Bugzilla::Object</a> provides, in addition to any methods documented below.</p>
56
<h1><a class='u' href='#___top' title='click to go to top of document'
62
><code class="code">create</code></a></dt>
65
<p>Note that in addition to what <a href="../Bugzilla/Object.html#create(%24params)" class="podlinkpod"
66
>"create($params)" in Bugzilla::Object</a> normally does, this function also makes the new group be inherited by the <code class="code">admin</code> group. That is, the <code class="code">admin</code> group will automatically be a member of this group.</p>
68
<dt><a name="ValidateGroupName($name,_@users)"
69
><code class="code">ValidateGroupName($name, @users)</code></a></dt>
72
<pre class="code"> Description: ValidateGroupName checks to see if ANY of the users
73
in the provided list of user objects can see the
76
Params: $name - String with the group name.
77
@users - An array with Bugzilla::User objects.
79
Returns: It returns the group id if successful
80
and undef otherwise.</pre>
84
<h1><a class='u' href='#___top' title='click to go to top of document'
89
<dt><a name="members_non_inherited"
90
><code class="code">members_non_inherited</code></a></dt>
93
<p>Returns an arrayref of <a href="../Bugzilla/User.html" class="podlinkpod"
94
>Bugzilla::User</a> objects representing people who are "directly" in this group, meaning that they're in it because they match the group regular expression, or they have been actually added to the group manually.</p>
97
<p class="backlinkbottom"><b><a name="___bottom" href="../index.html" title="All Documents"><<</a></b></p>