2 FS::part_svc - Object methods for part_svc objects
7 $record = new FS::part_referral \%hash
8 $record = new FS::part_referral { 'column' => 'value' };
10 $error = $record->insert;
12 $error = $new_record->replace($old_record);
14 $error = $record->delete;
16 $error = $record->check;
19 An FS::part_svc represents a service definition. FS::part_svc
20 inherits from FS::Record. The following fields are currently
23 svcpart - primary key (assigned automatically for new service definitions)
24 svc - text name of this service definition
25 svcdb - table used for this service. See the FS::svc_acct manpage,
26 the FS::svc_domain manpage, and the FS::svc_acct_sm manpage, among others.
27 *svcdb*__*field* - Default or fixed value for *field* in *svcdb*.
28 *svcdb*__*field*_flag - defines *svcdb*__*field* action: null, `D' for default, or `F' for fixed
31 Creates a new service definition. To add the service
32 definition to the database, see the section on "insert".
35 Adds this service definition to the database. If there is an
36 error, returns the error, otherwise returns false.
39 Currently unimplemented.
42 Replaces OLD_RECORD with this one in the database. If there
43 is an error, returns the error, otherwise returns false.
46 Checks all fields to make sure this is a valid service
47 definition. If there is an error, returns the error,
48 otherwise returns false. Called by the insert and replace
52 $Id: part_svc.txt,v 1.3 1999-04-08 13:39:32 ivan Exp $
55 Delete is unimplemented.
57 The list of svc_* tables is hardcoded. When svc_acct_pop is
58 renamed, this should be fixed.
61 the FS::Record manpage, the FS::part_pkg manpage, the
62 FS::pkg_svc manpage, the FS::cust_svc manpage, the FS::svc_acct
63 manpage, the FS::svc_acct_sm manpage, the FS::svc_domain
64 manpage, schema.html from the base documentation.
67 ivan@sisd.com 97-nov-14
69 data checking/untainting calls into FS::Record added
70 ivan@sisd.com 97-dec-6
72 pod ivan@sisd.com 98-sep-21
74 $Log: part_svc.txt,v $
75 Revision 1.3 1999-04-08 13:39:32 ivan
76 convert from pod for 1.2.0 release
77 Revision 1.3 1999/02/07 09:59:44 ivan more
78 mod_perl fixes, and bugfixes Peter Wemm sent via email
80 Revision 1.2 1998/12/29 11:59:50 ivan mostly properly OO, some
81 work still to be done with svc_ stuff