1 package FS::svc_export_machine;
2 use base qw( FS::Record );
8 sub _svc_child_partfields { ('exportnum') };
12 FS::svc_export_machine - Object methods for svc_export_machine records
16 use FS::svc_export_machine;
18 $record = new FS::svc_export_machine \%hash;
19 $record = new FS::svc_export_machine { 'column' => 'value' };
21 $error = $record->insert;
23 $error = $new_record->replace($old_record);
25 $error = $record->delete;
27 $error = $record->check;
31 An FS::svc_export_machine object represents a customer service export
32 hostname. FS::svc_export_machine inherits from FS::Record. The following
33 fields are currently supported:
37 =item svcexportmachinenum
43 Export definition, see L<FS::part_export>
47 Customer service, see L<FS::cust_svc>
51 Export hostname, see L<FS::part_export_machine>
61 Creates a new record. To add the record to the database, see L<"insert">.
63 Note that this stores the hash reference, not a distinct copy of the hash it
64 points to. You can ask the object for a copy with the I<hash> method.
68 sub table { 'svc_export_machine'; }
72 Adds this record to the database. If there is an error, returns the error,
73 otherwise returns false.
77 Delete this record from the database.
79 =item replace OLD_RECORD
81 Replaces the OLD_RECORD with this one in the database. If there is an error,
82 returns the error, otherwise returns false.
86 Checks all fields to make sure this is a valid record. If there is
87 an error, returns the error, otherwise returns false. Called by the insert
96 $self->ut_numbern('svcexportmachinenum')
97 || $self->ut_foreign_key('svcnum', 'cust_svc', 'svcnum' )
98 || $self->ut_foreign_key('exportnum', 'part_export', 'exportnum' )
99 || $self->ut_foreign_key('machinenum', 'part_export_machine', 'machinenum')
101 return $error if $error;
106 =item part_export_machine
114 L<FS::cust_svc>, L<FS::part_export_machine>, L<FS::Record>