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 !!
51 @ISA= qw( RT::Record );
56 $self->Table('Queues');
57 $self->SUPER::_Init(@_);
64 =item Create PARAMHASH
66 Create takes a hash of values and creates a row in the database:
69 varchar(255) 'Description'.
70 varchar(120) 'CorrespondAddress'.
71 varchar(120) 'CommentAddress'.
72 int(11) 'InitialPriority'.
73 int(11) 'FinalPriority'.
74 int(11) 'DefaultDueIn'.
75 smallint(6) 'Disabled'.
87 CorrespondAddress => '',
89 InitialPriority => '0',
96 Name => $args{'Name'},
97 Description => $args{'Description'},
98 CorrespondAddress => $args{'CorrespondAddress'},
99 CommentAddress => $args{'CommentAddress'},
100 InitialPriority => $args{'InitialPriority'},
101 FinalPriority => $args{'FinalPriority'},
102 DefaultDueIn => $args{'DefaultDueIn'},
103 Disabled => $args{'Disabled'},
112 Returns the current value of id.
113 (In the database, id is stored as int(11).)
121 Returns the current value of Name.
122 (In the database, Name is stored as varchar(200).)
130 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
131 (In the database, Name will be stored as a varchar(200).)
139 Returns the current value of Description.
140 (In the database, Description is stored as varchar(255).)
144 =item SetDescription VALUE
147 Set Description to VALUE.
148 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
149 (In the database, Description will be stored as a varchar(255).)
155 =item CorrespondAddress
157 Returns the current value of CorrespondAddress.
158 (In the database, CorrespondAddress is stored as varchar(120).)
162 =item SetCorrespondAddress VALUE
165 Set CorrespondAddress to VALUE.
166 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
167 (In the database, CorrespondAddress will be stored as a varchar(120).)
175 Returns the current value of CommentAddress.
176 (In the database, CommentAddress is stored as varchar(120).)
180 =item SetCommentAddress VALUE
183 Set CommentAddress to VALUE.
184 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
185 (In the database, CommentAddress will be stored as a varchar(120).)
191 =item InitialPriority
193 Returns the current value of InitialPriority.
194 (In the database, InitialPriority is stored as int(11).)
198 =item SetInitialPriority VALUE
201 Set InitialPriority to VALUE.
202 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
203 (In the database, InitialPriority will be stored as a int(11).)
211 Returns the current value of FinalPriority.
212 (In the database, FinalPriority is stored as int(11).)
216 =item SetFinalPriority VALUE
219 Set FinalPriority to VALUE.
220 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
221 (In the database, FinalPriority will be stored as a int(11).)
229 Returns the current value of DefaultDueIn.
230 (In the database, DefaultDueIn is stored as int(11).)
234 =item SetDefaultDueIn VALUE
237 Set DefaultDueIn to VALUE.
238 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
239 (In the database, DefaultDueIn will be stored as a int(11).)
247 Returns the current value of Creator.
248 (In the database, Creator is stored as int(11).)
256 Returns the current value of Created.
257 (In the database, Created is stored as datetime.)
265 Returns the current value of LastUpdatedBy.
266 (In the database, LastUpdatedBy is stored as int(11).)
274 Returns the current value of LastUpdated.
275 (In the database, LastUpdated is stored as datetime.)
283 Returns the current value of Disabled.
284 (In the database, Disabled is stored as smallint(6).)
288 =item SetDisabled VALUE
291 Set Disabled to VALUE.
292 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
293 (In the database, Disabled will be stored as a smallint(6).)
300 sub _ClassAccessible {
304 {read => 1, type => 'int(11)', default => ''},
306 {read => 1, write => 1, type => 'varchar(200)', default => ''},
308 {read => 1, write => 1, type => 'varchar(255)', default => ''},
310 {read => 1, write => 1, type => 'varchar(120)', default => ''},
312 {read => 1, write => 1, type => 'varchar(120)', default => ''},
314 {read => 1, write => 1, type => 'int(11)', default => '0'},
316 {read => 1, write => 1, type => 'int(11)', default => '0'},
318 {read => 1, write => 1, type => 'int(11)', default => '0'},
320 {read => 1, auto => 1, type => 'int(11)', default => '0'},
322 {read => 1, auto => 1, type => 'datetime', default => ''},
324 {read => 1, auto => 1, type => 'int(11)', default => '0'},
326 {read => 1, auto => 1, type => 'datetime', default => ''},
328 {read => 1, write => 1, type => 'smallint(6)', default => '0'},
334 eval "require RT::Queue_Overlay";
335 if ($@ && $@ !~ qr{^Can't locate RT/Queue_Overlay.pm}) {
339 eval "require RT::Queue_Vendor";
340 if ($@ && $@ !~ qr{^Can't locate RT/Queue_Vendor.pm}) {
344 eval "require RT::Queue_Local";
345 if ($@ && $@ !~ qr{^Can't locate RT/Queue_Local.pm}) {
354 This class allows "overlay" methods to be placed
355 into the following files _Overlay is for a System overlay by the original author,
356 _Vendor is for 3rd-party vendor add-ons, while _Local is for site-local customizations.
358 These overlay files can contain new subs or subs to replace existing subs in this module.
360 If you'll be working with perl 5.6.0 or greater, each of these files should begin with the line
362 no warnings qw(redefine);
364 so that perl does not kick and scream when you redefine a subroutine or variable in your overlay.
366 RT::Queue_Overlay, RT::Queue_Vendor, RT::Queue_Local