import rt 3.6.4
[freeside.git] / rt / lib / RT / ScripAction.pm
1 # BEGIN BPS TAGGED BLOCK {{{
2
3 # COPYRIGHT:
4 #  
5 # This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC 
6 #                                          <jesse@bestpractical.com>
7
8 # (Except where explicitly superseded by other copyright notices)
9
10
11 # LICENSE:
12
13 # This work is made available to you under the terms of Version 2 of
14 # the GNU General Public License. A copy of that license should have
15 # been provided with this software, but in any event can be snarfed
16 # from www.gnu.org.
17
18 # This work is distributed in the hope that it will be useful, but
19 # WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21 # General Public License for more details.
22
23 # You should have received a copy of the GNU General Public License
24 # along with this program; if not, write to the Free Software
25 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
26 # 02110-1301 or visit their web page on the internet at
27 # http://www.gnu.org/copyleft/gpl.html.
28
29
30 # CONTRIBUTION SUBMISSION POLICY:
31
32 # (The following paragraph is not intended to limit the rights granted
33 # to you to modify and distribute this software under the terms of
34 # the GNU General Public License and is only of importance to you if
35 # you choose to contribute your changes and enhancements to the
36 # community by submitting them to Best Practical Solutions, LLC.)
37
38 # By intentionally submitting any modifications, corrections or
39 # derivatives to this work, or any other work intended for use with
40 # Request Tracker, to Best Practical Solutions, LLC, you confirm that
41 # you are the copyright holder for those contributions and you grant
42 # Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
43 # royalty-free, perpetual, license to use, copy, create derivative
44 # works based on those contributions, and sublicense and distribute
45 # those contributions and any derivatives thereof.
46
47 # END BPS TAGGED BLOCK }}}
48 # Autogenerated by DBIx::SearchBuilder factory (by <jesse@bestpractical.com>)
49 # WARNING: THIS FILE IS AUTOGENERATED. ALL CHANGES TO THIS FILE WILL BE LOST.  
50
51 # !! DO NOT EDIT THIS FILE !!
52 #
53
54 use strict;
55
56
57 =head1 NAME
58
59 RT::ScripAction
60
61
62 =head1 SYNOPSIS
63
64 =head1 DESCRIPTION
65
66 =head1 METHODS
67
68 =cut
69
70 package RT::ScripAction;
71 use RT::Record; 
72
73
74 use vars qw( @ISA );
75 @ISA= qw( RT::Record );
76
77 sub _Init {
78   my $self = shift; 
79
80   $self->Table('ScripActions');
81   $self->SUPER::_Init(@_);
82 }
83
84
85
86
87
88 =head2 Create PARAMHASH
89
90 Create takes a hash of values and creates a row in the database:
91
92   varchar(200) 'Name'.
93   varchar(255) 'Description'.
94   varchar(60) 'ExecModule'.
95   varchar(255) 'Argument'.
96
97 =cut
98
99
100
101
102 sub Create {
103     my $self = shift;
104     my %args = ( 
105                 Name => '',
106                 Description => '',
107                 ExecModule => '',
108                 Argument => '',
109
110                   @_);
111     $self->SUPER::Create(
112                          Name => $args{'Name'},
113                          Description => $args{'Description'},
114                          ExecModule => $args{'ExecModule'},
115                          Argument => $args{'Argument'},
116 );
117
118 }
119
120
121
122 =head2 id
123
124 Returns the current value of id. 
125 (In the database, id is stored as int(11).)
126
127
128 =cut
129
130
131 =head2 Name
132
133 Returns the current value of Name. 
134 (In the database, Name is stored as varchar(200).)
135
136
137
138 =head2 SetName VALUE
139
140
141 Set Name to VALUE. 
142 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
143 (In the database, Name will be stored as a varchar(200).)
144
145
146 =cut
147
148
149 =head2 Description
150
151 Returns the current value of Description. 
152 (In the database, Description is stored as varchar(255).)
153
154
155
156 =head2 SetDescription VALUE
157
158
159 Set Description to VALUE. 
160 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
161 (In the database, Description will be stored as a varchar(255).)
162
163
164 =cut
165
166
167 =head2 ExecModule
168
169 Returns the current value of ExecModule. 
170 (In the database, ExecModule is stored as varchar(60).)
171
172
173
174 =head2 SetExecModule VALUE
175
176
177 Set ExecModule to VALUE. 
178 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
179 (In the database, ExecModule will be stored as a varchar(60).)
180
181
182 =cut
183
184
185 =head2 Argument
186
187 Returns the current value of Argument. 
188 (In the database, Argument is stored as varchar(255).)
189
190
191
192 =head2 SetArgument VALUE
193
194
195 Set Argument to VALUE. 
196 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
197 (In the database, Argument will be stored as a varchar(255).)
198
199
200 =cut
201
202
203 =head2 Creator
204
205 Returns the current value of Creator. 
206 (In the database, Creator is stored as int(11).)
207
208
209 =cut
210
211
212 =head2 Created
213
214 Returns the current value of Created. 
215 (In the database, Created is stored as datetime.)
216
217
218 =cut
219
220
221 =head2 LastUpdatedBy
222
223 Returns the current value of LastUpdatedBy. 
224 (In the database, LastUpdatedBy is stored as int(11).)
225
226
227 =cut
228
229
230 =head2 LastUpdated
231
232 Returns the current value of LastUpdated. 
233 (In the database, LastUpdated is stored as datetime.)
234
235
236 =cut
237
238
239
240 sub _CoreAccessible {
241     {
242      
243         id =>
244                 {read => 1, sql_type => 4, length => 11,  is_blob => 0,  is_numeric => 1,  type => 'int(11)', default => ''},
245         Name => 
246                 {read => 1, write => 1, sql_type => 12, length => 200,  is_blob => 0,  is_numeric => 0,  type => 'varchar(200)', default => ''},
247         Description => 
248                 {read => 1, write => 1, sql_type => 12, length => 255,  is_blob => 0,  is_numeric => 0,  type => 'varchar(255)', default => ''},
249         ExecModule => 
250                 {read => 1, write => 1, sql_type => 12, length => 60,  is_blob => 0,  is_numeric => 0,  type => 'varchar(60)', default => ''},
251         Argument => 
252                 {read => 1, write => 1, sql_type => 12, length => 255,  is_blob => 0,  is_numeric => 0,  type => 'varchar(255)', default => ''},
253         Creator => 
254                 {read => 1, auto => 1, sql_type => 4, length => 11,  is_blob => 0,  is_numeric => 1,  type => 'int(11)', default => '0'},
255         Created => 
256                 {read => 1, auto => 1, sql_type => 11, length => 0,  is_blob => 0,  is_numeric => 0,  type => 'datetime', default => ''},
257         LastUpdatedBy => 
258                 {read => 1, auto => 1, sql_type => 4, length => 11,  is_blob => 0,  is_numeric => 1,  type => 'int(11)', default => '0'},
259         LastUpdated => 
260                 {read => 1, auto => 1, sql_type => 11, length => 0,  is_blob => 0,  is_numeric => 0,  type => 'datetime', default => ''},
261
262  }
263 };
264
265
266         eval "require RT::ScripAction_Overlay";
267         if ($@ && $@ !~ qr{^Can't locate RT/ScripAction_Overlay.pm}) {
268             die $@;
269         };
270
271         eval "require RT::ScripAction_Vendor";
272         if ($@ && $@ !~ qr{^Can't locate RT/ScripAction_Vendor.pm}) {
273             die $@;
274         };
275
276         eval "require RT::ScripAction_Local";
277         if ($@ && $@ !~ qr{^Can't locate RT/ScripAction_Local.pm}) {
278             die $@;
279         };
280
281
282
283
284 =head1 SEE ALSO
285
286 This class allows "overlay" methods to be placed
287 into the following files _Overlay is for a System overlay by the original author,
288 _Vendor is for 3rd-party vendor add-ons, while _Local is for site-local customizations.  
289
290 These overlay files can contain new subs or subs to replace existing subs in this module.
291
292 Each of these files should begin with the line 
293
294    no warnings qw(redefine);
295
296 so that perl does not kick and scream when you redefine a subroutine or variable in your overlay.
297
298 RT::ScripAction_Overlay, RT::ScripAction_Vendor, RT::ScripAction_Local
299
300 =cut
301
302
303 1;