[Rt-commit] rt branch, history-filter, updated. rt-3.8.8-86-gf59d881

Shawn Moore sartak at bestpractical.com
Tue Jun 15 14:53:17 EDT 2010


The branch, history-filter has been updated
       via  f59d881a8468ffeffbce40db783da61899d32273 (commit)
      from  920c132891b42ec25efccf5507bc06c6020c8c8a (commit)

Summary of changes:
 lib/RT/Transaction_Overlay.pm |   45 ++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 44 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit f59d881a8468ffeffbce40db783da61899d32273
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Jun 15 14:53:29 2010 -0400

    RT::Transaction->AllTypes

diff --git a/lib/RT/Transaction_Overlay.pm b/lib/RT/Transaction_Overlay.pm
index d1630ea..f73f844 100755
--- a/lib/RT/Transaction_Overlay.pm
+++ b/lib/RT/Transaction_Overlay.pm
@@ -74,7 +74,7 @@ package RT::Transaction;
 use strict;
 no warnings qw(redefine);
 
-use vars qw( %_BriefDescriptions $PreferredContentType );
+use vars qw( %_BriefDescriptions $PreferredContentType @AllTypes );
 
 use RT::Attachments;
 use RT::Scrips;
@@ -83,6 +83,37 @@ use RT::Ruleset;
 use HTML::FormatText;
 use HTML::TreeBuilder;
 
+# {{{ AllTypes
+ at AllTypes = qw/
+    AddLink
+    AddReminder
+    AddWatcher
+    Comment
+    CommentEmailRecord
+    Correspond
+    Create
+    CustomField
+    DelWatcher
+    DeleteLink
+    Disabled
+    EmailRecord
+    Enabled
+    Force
+    Give
+    OpenReminder
+    PurgeTransaction
+    ResolveReminder
+    Set
+    Status
+    Steal
+    Subject
+    SystemError
+    Take
+    Told
+    Untake
+/;
+# }}}
+
 # {{{ sub Create 
 
 =head2 Create
@@ -1275,4 +1306,16 @@ sub ACLEquivalenceObjects {
 
 }
 
+=head2 AllTypes
+
+Returns a list of the values used for the Type field. Because Type is a string
+(as opposed to an enumeration) set by scrips, extensions, etc, this is probably
+not going to be exhaustive.
+
+=cut
+
+sub AllTypes {
+    return @AllTypes;
+}
+
 1;

-----------------------------------------------------------------------


More information about the Rt-commit mailing list