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::ScripAction;
51 @ISA= qw( RT::Record );
56 $self->Table('ScripActions');
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(60) 'ExecModule'.
71 varchar(255) 'Argument'.
88 Name => $args{'Name'},
89 Description => $args{'Description'},
90 ExecModule => $args{'ExecModule'},
91 Argument => $args{'Argument'},
100 Returns the current value of id.
101 (In the database, id is stored as int(11).)
109 Returns the current value of Name.
110 (In the database, Name is stored as varchar(200).)
118 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
119 (In the database, Name will be stored as a varchar(200).)
127 Returns the current value of Description.
128 (In the database, Description is stored as varchar(255).)
132 =item SetDescription VALUE
135 Set Description to VALUE.
136 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
137 (In the database, Description will be stored as a varchar(255).)
145 Returns the current value of ExecModule.
146 (In the database, ExecModule is stored as varchar(60).)
150 =item SetExecModule VALUE
153 Set ExecModule to VALUE.
154 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
155 (In the database, ExecModule will be stored as a varchar(60).)
163 Returns the current value of Argument.
164 (In the database, Argument is stored as varchar(255).)
168 =item SetArgument VALUE
171 Set Argument to VALUE.
172 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
173 (In the database, Argument will be stored as a varchar(255).)
181 Returns the current value of Creator.
182 (In the database, Creator is stored as int(11).)
190 Returns the current value of Created.
191 (In the database, Created is stored as datetime.)
199 Returns the current value of LastUpdatedBy.
200 (In the database, LastUpdatedBy is stored as int(11).)
208 Returns the current value of LastUpdated.
209 (In the database, LastUpdated is stored as datetime.)
216 sub _ClassAccessible {
220 {read => 1, type => 'int(11)', default => ''},
222 {read => 1, write => 1, type => 'varchar(200)', default => ''},
224 {read => 1, write => 1, type => 'varchar(255)', default => ''},
226 {read => 1, write => 1, type => 'varchar(60)', default => ''},
228 {read => 1, write => 1, type => 'varchar(255)', default => ''},
230 {read => 1, auto => 1, type => 'int(11)', default => '0'},
232 {read => 1, auto => 1, type => 'datetime', default => ''},
234 {read => 1, auto => 1, type => 'int(11)', default => '0'},
236 {read => 1, auto => 1, type => 'datetime', default => ''},
242 eval "require RT::ScripAction_Overlay";
243 if ($@ && $@ !~ qr{^Can't locate RT/ScripAction_Overlay.pm}) {
247 eval "require RT::ScripAction_Vendor";
248 if ($@ && $@ !~ qr{^Can't locate RT/ScripAction_Vendor.pm}) {
252 eval "require RT::ScripAction_Local";
253 if ($@ && $@ !~ qr{^Can't locate RT/ScripAction_Local.pm}) {
262 This class allows "overlay" methods to be placed
263 into the following files _Overlay is for a System overlay by the original author,
264 _Vendor is for 3rd-party vendor add-ons, while _Local is for site-local customizations.
266 These overlay files can contain new subs or subs to replace existing subs in this module.
268 If you'll be working with perl 5.6.0 or greater, each of these files should begin with the line
270 no warnings qw(redefine);
272 so that perl does not kick and scream when you redefine a subroutine or variable in your overlay.
274 RT::ScripAction_Overlay, RT::ScripAction_Vendor, RT::ScripAction_Local