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::CustomFieldValue;
52 @ISA= qw( RT::Record );
57 $self->Table('CustomFieldValues');
58 $self->SUPER::_Init(@_);
65 =item Create PARAMHASH
67 Create takes a hash of values and creates a row in the database:
69 int(11) 'CustomField'.
71 varchar(255) 'Description'.
89 CustomField => $args{'CustomField'},
90 Name => $args{'Name'},
91 Description => $args{'Description'},
92 SortOrder => $args{'SortOrder'},
101 Returns the current value of id.
102 (In the database, id is stored as int(11).)
110 Returns the current value of CustomField.
111 (In the database, CustomField is stored as int(11).)
115 =item SetCustomField VALUE
118 Set CustomField to VALUE.
119 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
120 (In the database, CustomField will be stored as a int(11).)
128 Returns the CustomField Object which has the id returned by CustomField
135 my $CustomField = RT::CustomField->new($self->CurrentUser);
136 $CustomField->Load($self->__Value('CustomField'));
137 return($CustomField);
142 Returns the current value of Name.
143 (In the database, Name is stored as varchar(200).)
151 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
152 (In the database, Name will be stored as a varchar(200).)
160 Returns the current value of Description.
161 (In the database, Description is stored as varchar(255).)
165 =item SetDescription VALUE
168 Set Description to VALUE.
169 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
170 (In the database, Description will be stored as a varchar(255).)
178 Returns the current value of SortOrder.
179 (In the database, SortOrder is stored as int(11).)
183 =item SetSortOrder VALUE
186 Set SortOrder to VALUE.
187 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
188 (In the database, SortOrder will be stored as a int(11).)
196 Returns the current value of Creator.
197 (In the database, Creator is stored as int(11).)
205 Returns the current value of Created.
206 (In the database, Created is stored as datetime.)
214 Returns the current value of LastUpdatedBy.
215 (In the database, LastUpdatedBy is stored as int(11).)
223 Returns the current value of LastUpdated.
224 (In the database, LastUpdated is stored as datetime.)
231 sub _ClassAccessible {
235 {read => 1, type => 'int(11)', default => ''},
237 {read => 1, write => 1, type => 'int(11)', default => '0'},
239 {read => 1, write => 1, type => 'varchar(200)', default => ''},
241 {read => 1, write => 1, type => 'varchar(255)', default => ''},
243 {read => 1, write => 1, type => 'int(11)', default => '0'},
245 {read => 1, auto => 1, type => 'int(11)', default => '0'},
247 {read => 1, auto => 1, type => 'datetime', default => ''},
249 {read => 1, auto => 1, type => 'int(11)', default => '0'},
251 {read => 1, auto => 1, type => 'datetime', default => ''},
257 eval "require RT::CustomFieldValue_Overlay";
258 if ($@ && $@ !~ qr{^Can't locate RT/CustomFieldValue_Overlay.pm}) {
262 eval "require RT::CustomFieldValue_Vendor";
263 if ($@ && $@ !~ qr{^Can't locate RT/CustomFieldValue_Vendor.pm}) {
267 eval "require RT::CustomFieldValue_Local";
268 if ($@ && $@ !~ qr{^Can't locate RT/CustomFieldValue_Local.pm}) {
277 This class allows "overlay" methods to be placed
278 into the following files _Overlay is for a System overlay by the original author,
279 _Vendor is for 3rd-party vendor add-ons, while _Local is for site-local customizations.
281 These overlay files can contain new subs or subs to replace existing subs in this module.
283 If you'll be working with perl 5.6.0 or greater, each of these files should begin with the line
285 no warnings qw(redefine);
287 so that perl does not kick and scream when you redefine a subroutine or variable in your overlay.
289 RT::CustomFieldValue_Overlay, RT::CustomFieldValue_Vendor, RT::CustomFieldValue_Local