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('Links');
57 $self->SUPER::_Init(@_);
64 =item Create PARAMHASH
66 Create takes a hash of values and creates a row in the database:
69 varchar(240) 'Target'.
71 int(11) 'LocalTarget'.
90 Base => $args{'Base'},
91 Target => $args{'Target'},
92 Type => $args{'Type'},
93 LocalTarget => $args{'LocalTarget'},
94 LocalBase => $args{'LocalBase'},
103 Returns the current value of id.
104 (In the database, id is stored as int(11).)
112 Returns the current value of Base.
113 (In the database, Base is stored as varchar(240).)
121 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
122 (In the database, Base will be stored as a varchar(240).)
130 Returns the current value of Target.
131 (In the database, Target is stored as varchar(240).)
135 =item SetTarget VALUE
139 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
140 (In the database, Target will be stored as a varchar(240).)
148 Returns the current value of Type.
149 (In the database, Type is stored as varchar(20).)
157 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
158 (In the database, Type will be stored as a varchar(20).)
166 Returns the current value of LocalTarget.
167 (In the database, LocalTarget is stored as int(11).)
171 =item SetLocalTarget VALUE
174 Set LocalTarget to VALUE.
175 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
176 (In the database, LocalTarget will be stored as a int(11).)
184 Returns the current value of LocalBase.
185 (In the database, LocalBase is stored as int(11).)
189 =item SetLocalBase VALUE
192 Set LocalBase to VALUE.
193 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
194 (In the database, LocalBase will be stored as a int(11).)
202 Returns the current value of LastUpdatedBy.
203 (In the database, LastUpdatedBy is stored as int(11).)
211 Returns the current value of LastUpdated.
212 (In the database, LastUpdated is stored as datetime.)
220 Returns the current value of Creator.
221 (In the database, Creator is stored as int(11).)
229 Returns the current value of Created.
230 (In the database, Created is stored as datetime.)
237 sub _ClassAccessible {
241 {read => 1, type => 'int(11)', default => ''},
243 {read => 1, write => 1, type => 'varchar(240)', default => ''},
245 {read => 1, write => 1, type => 'varchar(240)', default => ''},
247 {read => 1, write => 1, type => 'varchar(20)', default => ''},
249 {read => 1, write => 1, type => 'int(11)', default => '0'},
251 {read => 1, write => 1, type => 'int(11)', default => '0'},
253 {read => 1, auto => 1, type => 'int(11)', default => '0'},
255 {read => 1, auto => 1, type => 'datetime', default => ''},
257 {read => 1, auto => 1, type => 'int(11)', default => '0'},
259 {read => 1, auto => 1, type => 'datetime', default => ''},
265 eval "require RT::Link_Overlay";
266 if ($@ && $@ !~ qr{^Can't locate RT/Link_Overlay.pm}) {
270 eval "require RT::Link_Vendor";
271 if ($@ && $@ !~ qr{^Can't locate RT/Link_Vendor.pm}) {
275 eval "require RT::Link_Local";
276 if ($@ && $@ !~ qr{^Can't locate RT/Link_Local.pm}) {
285 This class allows "overlay" methods to be placed
286 into the following files _Overlay is for a System overlay by the original author,
287 _Vendor is for 3rd-party vendor add-ons, while _Local is for site-local customizations.
289 These overlay files can contain new subs or subs to replace existing subs in this module.
291 If you'll be working with perl 5.6.0 or greater, each of these files should begin with the line
293 no warnings qw(redefine);
295 so that perl does not kick and scream when you redefine a subroutine or variable in your overlay.
297 RT::Link_Overlay, RT::Link_Vendor, RT::Link_Local