import of rt 3.0.9
[freeside.git] / rt / lib / RT / Transactions_Overlay.pm
1 # BEGIN LICENSE BLOCK
2
3 # Copyright (c) 1996-2003 Jesse Vincent <jesse@bestpractical.com>
4
5 # (Except where explictly superceded by other copyright notices)
6
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
10 # from www.gnu.org.
11
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.
16
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.
21
22
23 # END LICENSE BLOCK
24 =head1 NAME
25
26   RT::Transactions - a collection of RT Transaction objects
27
28 =head1 SYNOPSIS
29
30   use RT::Transactions;
31
32
33 =head1 DESCRIPTION
34
35
36 =head1 METHODS
37
38 =begin testing
39
40 ok (require RT::Transactions);
41
42 =end testing
43
44 =cut
45
46 use strict;
47 no warnings qw(redefine);
48
49 # {{{ sub _Init  
50 sub _Init   {
51   my $self = shift;
52   
53   $self->{'table'} = "Transactions";
54   $self->{'primary_key'} = "id";
55   
56   # By default, order by the date of the transaction, rather than ID.
57   $self->OrderBy( ALIAS => 'main',
58                   FIELD => 'Created',
59                   ORDER => 'ASC');
60
61   return ( $self->SUPER::_Init(@_));
62 }
63 # }}}
64
65 =head2 example methods
66
67   Queue RT::Queue or Queue Id
68   Ticket RT::Ticket or Ticket Id
69
70
71 LimitDate 
72   
73 Type TRANSTYPE
74 Field STRING
75 OldValue OLDVAL
76 NewValue NEWVAL
77 Data DATA
78 TimeTaken
79 Actor USEROBJ/USERID
80 ContentMatches STRING
81
82 =cut
83
84
85 1;
86