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 !!
35 RT::TicketCustomFieldValue
46 package RT::TicketCustomFieldValue;
53 @ISA= qw( RT::Record );
58 $self->Table('TicketCustomFieldValues');
59 $self->SUPER::_Init(@_);
66 =item Create PARAMHASH
68 Create takes a hash of values and creates a row in the database:
71 int(11) 'CustomField'.
72 varchar(255) 'Content'.
88 Ticket => $args{'Ticket'},
89 CustomField => $args{'CustomField'},
90 Content => $args{'Content'},
99 Returns the current value of id.
100 (In the database, id is stored as int(11).)
108 Returns the current value of Ticket.
109 (In the database, Ticket is stored as int(11).)
113 =item SetTicket VALUE
117 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
118 (In the database, Ticket will be stored as a int(11).)
126 Returns the Ticket Object which has the id returned by Ticket
133 my $Ticket = RT::Ticket->new($self->CurrentUser);
134 $Ticket->Load($self->__Value('Ticket'));
140 Returns the current value of CustomField.
141 (In the database, CustomField is stored as int(11).)
145 =item SetCustomField VALUE
148 Set CustomField to VALUE.
149 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
150 (In the database, CustomField will be stored as a int(11).)
158 Returns the CustomField Object which has the id returned by CustomField
165 my $CustomField = RT::CustomField->new($self->CurrentUser);
166 $CustomField->Load($self->__Value('CustomField'));
167 return($CustomField);
172 Returns the current value of Content.
173 (In the database, Content is stored as varchar(255).)
177 =item SetContent VALUE
180 Set Content to VALUE.
181 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
182 (In the database, Content will be stored as a varchar(255).)
190 Returns the current value of Creator.
191 (In the database, Creator is stored as int(11).)
199 Returns the current value of Created.
200 (In the database, Created is stored as datetime.)
208 Returns the current value of LastUpdatedBy.
209 (In the database, LastUpdatedBy is stored as int(11).)
217 Returns the current value of LastUpdated.
218 (In the database, LastUpdated is stored as datetime.)
225 sub _ClassAccessible {
229 {read => 1, type => 'int(11)', default => ''},
231 {read => 1, write => 1, type => 'int(11)', default => '0'},
233 {read => 1, write => 1, type => 'int(11)', default => '0'},
235 {read => 1, write => 1, type => 'varchar(255)', default => ''},
237 {read => 1, auto => 1, type => 'int(11)', default => '0'},
239 {read => 1, auto => 1, type => 'datetime', default => ''},
241 {read => 1, auto => 1, type => 'int(11)', default => '0'},
243 {read => 1, auto => 1, type => 'datetime', default => ''},
249 eval "require RT::TicketCustomFieldValue_Overlay";
250 if ($@ && $@ !~ qr{^Can't locate RT/TicketCustomFieldValue_Overlay.pm}) {
254 eval "require RT::TicketCustomFieldValue_Vendor";
255 if ($@ && $@ !~ qr{^Can't locate RT/TicketCustomFieldValue_Vendor.pm}) {
259 eval "require RT::TicketCustomFieldValue_Local";
260 if ($@ && $@ !~ qr{^Can't locate RT/TicketCustomFieldValue_Local.pm}) {
269 This class allows "overlay" methods to be placed
270 into the following files _Overlay is for a System overlay by the original author,
271 _Vendor is for 3rd-party vendor add-ons, while _Local is for site-local customizations.
273 These overlay files can contain new subs or subs to replace existing subs in this module.
275 If you'll be working with perl 5.6.0 or greater, each of these files should begin with the line
277 no warnings qw(redefine);
279 so that perl does not kick and scream when you redefine a subroutine or variable in your overlay.
281 RT::TicketCustomFieldValue_Overlay, RT::TicketCustomFieldValue_Vendor, RT::TicketCustomFieldValue_Local