[Rt-commit] r8540 - in rt/branches/3.6-RELEASE: .
falcone at bestpractical.com
falcone at bestpractical.com
Tue Aug 14 12:23:38 EDT 2007
Author: falcone
Date: Tue Aug 14 12:23:38 2007
New Revision: 8540
Modified:
rt/branches/3.6-RELEASE/ (props changed)
rt/branches/3.6-RELEASE/lib/RT/Record.pm
Log:
r23772 at ketch: falcone | 2007-08-14 12:22:58 -0400
* document how to use the Update command on Records
Modified: rt/branches/3.6-RELEASE/lib/RT/Record.pm
==============================================================================
--- rt/branches/3.6-RELEASE/lib/RT/Record.pm (original)
+++ rt/branches/3.6-RELEASE/lib/RT/Record.pm Tue Aug 14 12:23:38 2007
@@ -886,6 +886,21 @@
);
+=head2 Update ARGSHASH
+
+Updates fields on an object for you using the proper Set methods,
+skipping unchanged values.
+
+ ARGSRef => a hashref of attributes => value for the update
+ AttributesRef => an arrayref of keys in ARGSRef that should be updated
+ AttributePrefix => a prefix that should be added to the attributes in AttributesRef
+ when looking up values in ARGSRef
+ Bare attributes are tried before prefixed attributes
+
+Returns a list of localized results of the update
+
+=cut
+
sub Update {
my $self = shift;
More information about the Rt-commit
mailing list