3 # Copyright (c) 1996-2003 Jesse Vincent <jesse@bestpractical.com>
5 # (Except where explictly superceded by other copyright notices)
7 # This work is made available to you under the terms of Version 2 of
8 # the GNU General Public License. A copy of that license should have
9 # been provided with this software, but in any event can be snarfed
12 # This work is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
17 # Unless otherwise specified, all modifications, corrections or
18 # extensions to this work which alter its source code become the
19 # property of Best Practical Solutions, LLC when submitted for
20 # inclusion in the work.
24 # Autogenerated by DBIx::SearchBuilder factory (by <jesse@bestpractical.com>)
25 # WARNING: THIS FILE IS AUTOGENERATED. ALL CHANGES TO THIS FILE WILL BE LOST.
27 # !! DO NOT EDIT THIS FILE !!
46 package RT::GroupMember;
51 @ISA= qw( RT::Record );
56 $self->Table('GroupMembers');
57 $self->SUPER::_Init(@_);
64 =item Create PARAMHASH
66 Create takes a hash of values and creates a row in the database:
84 GroupId => $args{'GroupId'},
85 MemberId => $args{'MemberId'},
94 Returns the current value of id.
95 (In the database, id is stored as int(11).)
103 Returns the current value of GroupId.
104 (In the database, GroupId is stored as int(11).)
108 =item SetGroupId VALUE
111 Set GroupId to VALUE.
112 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
113 (In the database, GroupId will be stored as a int(11).)
121 Returns the current value of MemberId.
122 (In the database, MemberId is stored as int(11).)
126 =item SetMemberId VALUE
129 Set MemberId to VALUE.
130 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
131 (In the database, MemberId will be stored as a int(11).)
138 sub _ClassAccessible {
142 {read => 1, type => 'int(11)', default => ''},
144 {read => 1, write => 1, type => 'int(11)', default => '0'},
146 {read => 1, write => 1, type => 'int(11)', default => '0'},
152 eval "require RT::GroupMember_Overlay";
153 if ($@ && $@ !~ qr{^Can't locate RT/GroupMember_Overlay.pm}) {
157 eval "require RT::GroupMember_Vendor";
158 if ($@ && $@ !~ qr{^Can't locate RT/GroupMember_Vendor.pm}) {
162 eval "require RT::GroupMember_Local";
163 if ($@ && $@ !~ qr{^Can't locate RT/GroupMember_Local.pm}) {
172 This class allows "overlay" methods to be placed
173 into the following files _Overlay is for a System overlay by the original author,
174 _Vendor is for 3rd-party vendor add-ons, while _Local is for site-local customizations.
176 These overlay files can contain new subs or subs to replace existing subs in this module.
178 If you'll be working with perl 5.6.0 or greater, each of these files should begin with the line
180 no warnings qw(redefine);
182 so that perl does not kick and scream when you redefine a subroutine or variable in your overlay.
184 RT::GroupMember_Overlay, RT::GroupMember_Vendor, RT::GroupMember_Local