[freeside-commits] freeside/FS/FS cust_svc.pm, 1.66.2.5, 1.66.2.6 part_export.pm, 1.100, 1.100.2.1 svc_Common.pm, 1.39.2.2, 1.39.2.3

Jeff Finucane,420,, jeff at wavetail.420.am
Wed Mar 12 09:22:12 PDT 2008


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv2663/FS/FS

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	cust_svc.pm part_export.pm svc_Common.pm 
Log Message:
allow exports to add links to customer view (#1407)

Index: svc_Common.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_Common.pm,v
retrieving revision 1.39.2.2
retrieving revision 1.39.2.3
diff -u -d -r1.39.2.2 -r1.39.2.3
--- svc_Common.pm	11 May 2007 19:51:11 -0000	1.39.2.2
+++ svc_Common.pm	12 Mar 2008 16:22:10 -0000	1.39.2.3
@@ -695,6 +695,19 @@
   $self->export('unsuspend');
 }
 
+=item export_links
+
+Runs export_links callbacks and returns the links.
+
+=cut
+
+sub export_links {
+  my $self = shift;
+  my $return = [];
+  $self->export('links', $return);
+  $return;
+}
+
 =item export HOOK [ EXPORT_ARGS ]
 
 Runs the provided export hook (i.e. "suspend", "unsuspend") for this service.

Index: part_export.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export.pm,v
retrieving revision 1.100
retrieving revision 1.100.2.1
diff -u -d -r1.100 -r1.100.2.1
--- part_export.pm	29 Dec 2006 08:24:21 -0000	1.100
+++ part_export.pm	12 Mar 2008 16:22:10 -0000	1.100.2.1
@@ -359,6 +359,14 @@
   $self->_export_replace( $svc_x, $old );
 }
 
+=item export_links SVC_OBJECT ARRAYREF
+
+Adds a list of web elements to ARRAYREF specific to this export and SVC_OBJECT.
+The elements are displayed in the UI to lead the the operator to external
+configuration, monitoring, and similar tools.
+
+=cut
+
 =back
 
 =head1 SUBROUTINES

Index: cust_svc.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_svc.pm,v
retrieving revision 1.66.2.5
retrieving revision 1.66.2.6
diff -u -d -r1.66.2.5 -r1.66.2.6
--- cust_svc.pm	11 Feb 2008 02:36:54 -0000	1.66.2.5
+++ cust_svc.pm	12 Mar 2008 16:22:10 -0000	1.66.2.6
@@ -392,6 +392,20 @@
 
 }
 
+=item export_links
+
+Returns a list of html elements associated with this services exports.
+
+=cut
+
+sub export_links {
+  my $self = shift;
+  my $svc_x = $self->svc_x
+    or return "can't find ". $self->part_svc->svcdb. '.svcnum '. $self->svcnum;
+
+  $svc_x->export_links;
+}
+
 =item svc_x
 
 Returns the FS::svc_XXX object for this service (i.e. an FS::svc_acct object or



More information about the freeside-commits mailing list