[Rt-commit] r12027 - in rt/branches/3.8-TESTING: .

sartak at bestpractical.com sartak at bestpractical.com
Fri May 2 19:28:23 EDT 2008


Author: sartak
Date: Fri May  2 19:28:22 2008
New Revision: 12027

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/lib/RT/Dashboard.pm
   rt/branches/3.8-TESTING/lib/RT/SavedSearch.pm
   rt/branches/3.8-TESTING/lib/RT/SharedSetting.pm

Log:
 r54827 at Macintosh:  sartak | 2008-05-02 19:27:24 -0400
 s/FauxObject/SharedSetting/g


Modified: rt/branches/3.8-TESTING/lib/RT/Dashboard.pm
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT/Dashboard.pm	(original)
+++ rt/branches/3.8-TESTING/lib/RT/Dashboard.pm	Fri May  2 19:28:22 2008
@@ -70,7 +70,7 @@
 
 use strict;
 use warnings;
-use base qw/RT::FauxObject/;
+use base qw/RT::SharedSetting/;
 
 my %new_rights = (
     ModifyDashboard    => 'Create and modify dashboards', #loc_pair

Modified: rt/branches/3.8-TESTING/lib/RT/SavedSearch.pm
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT/SavedSearch.pm	(original)
+++ rt/branches/3.8-TESTING/lib/RT/SavedSearch.pm	Fri May  2 19:28:22 2008
@@ -69,7 +69,7 @@
 
 use strict;
 use warnings;
-use base qw/RT::FauxObject/;
+use base qw/RT::SharedSetting/;
 
 =head2 ObjectName
 

Modified: rt/branches/3.8-TESTING/lib/RT/SharedSetting.pm
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT/SharedSetting.pm	(original)
+++ rt/branches/3.8-TESTING/lib/RT/SharedSetting.pm	Fri May  2 19:28:22 2008
@@ -47,23 +47,23 @@
 # END BPS TAGGED BLOCK }}}
 =head1 NAME
 
-  RT::FauxObject - an API for faux-objects
+  RT::SharedSetting - an API for settings that belong to an RT::User or RT::Group
 
 =head1 SYNOPSIS
 
-  use RT::FauxObject
+  use RT::SharedSetting
 
 =head1 DESCRIPTION
 
-  A FauxObject is an object that can belong to an RT::User or an RT::Group. It
-  consists of an ID, a name, and some arbitrary data.
+  A SharedSetting is an object that can belong to an RT::User or an RT::Group.
+  It consists of an ID, a name, and some arbitrary data.
 
 =head1 METHODS
 
 
 =cut
 
-package RT::FauxObject;
+package RT::SharedSetting;
 use strict;
 use warnings;
 use RT::Attribute;
@@ -81,7 +81,7 @@
 
 =head2 Load
 
-Takes a privacy specification, an object ID, and a faux-object ID.  Loads the
+Takes a privacy specification, an object ID, and a shared-setting ID.  Loads the
 given object ID if it belongs to the stated user or group.  Calls the PostLoad
 method on success for any further initialization. Returns a tuple of status and
 message, where status is true on success.
@@ -163,9 +163,9 @@
 
 =head2 Update
 
-Updates the parameters of an existing faux-object. Any arguments are passed to
-the UpdateAttribute method. Returns a tuple of status and message, where status
-is true on success. 
+Updates the parameters of an existing shared setting. Any arguments are passed
+to the UpdateAttribute method. Returns a tuple of status and message, where
+status is true on success. 
 
 =cut
 
@@ -191,8 +191,8 @@
 
 =head2 Delete
     
-Deletes the existing faux-object. Returns a tuple of status and message, where
-status is true upon success.
+Deletes the existing shared setting. Returns a tuple of status and message,
+where status is true upon success.
 
 =cut
 
@@ -211,7 +211,7 @@
 
 =head2 Name
 
-Returns the name of this faux-object.
+Returns the name of this shared setting.
 
 =cut
 
@@ -223,7 +223,7 @@
 
 =head2 Id
 
-Returns the numerical ID of this faux-object.
+Returns the numerical ID of this shared setting.
 
 =cut
 
@@ -234,7 +234,7 @@
 
 =head2 Privacy
 
-Returns the principal object to whom this faux-object belongs, in a string
+Returns the principal object to whom this shared setting belongs, in a string
 "<class>-<id>", e.g. "RT::Group-16".
 
 =cut
@@ -244,10 +244,10 @@
     return $self->{'Privacy'};
 }
 
-eval "require RT::FauxObject_Vendor";
-die $@ if ($@ && $@ !~ qr{^Can't locate RT/FauxObject_Vendor.pm});
-eval "require RT::FauxObject_Local";
-die $@ if ($@ && $@ !~ qr{^Can't locate RT/FauxObject_Local.pm});
+eval "require RT::SharedSetting_Vendor";
+die $@ if ($@ && $@ !~ qr{^Can't locate RT/SharedSetting_Vendor.pm});
+eval "require RT::SharedSetting_Local";
+die $@ if ($@ && $@ !~ qr{^Can't locate RT/SharedSetting_Local.pm});
 
 1;
 


More information about the Rt-commit mailing list