1 package FS::part_export::myexport;
6 @ISA = qw(FS::part_export);
11 my($self, $svc_something) = (shift, shift);
12 $self->myexport_queue( $svc_acct->svcnum, 'insert',
13 $svc_something->username, $svc_something->_password );
17 my( $self, $new, $old ) = (shift, shift, shift);
18 #return "can't change username with myexport"
19 # if $old->username ne $new->username;
20 #return '' unless $old->_password ne $new->_password;
21 $self->myexport_queue( $new->svcnum,
22 'replace', $new->username, $new->_password );
26 my( $self, $svc_something ) = (shift, shift);
27 $self->myexport_queue( $svc_acct->svcnum,
28 'delete', $svc_something->username );
31 #a good idea to queue anything that could fail or take any time
33 my( $self, $svcnum, $method ) = (shift, shift, shift);
34 my $queue = new FS::queue {
36 'job' => "FS::part_export::myexport::myexport_$method",
41 sub myexport_insert { #subroutine, not method
43 sub myexport_replace { #subroutine, not method
45 sub myexport_delete { #subroutine, not method