3 <TITLE>FS::part_svc - Object methods for part_svc objects</TITLE>
4 <LINK REV="made" HREF="mailto:perl@packages.debian.org">
9 <A NAME="__index__"></A>
14 <LI><A HREF="#name">NAME</A></LI>
15 <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
16 <LI><A HREF="#description">DESCRIPTION</A></LI>
17 <LI><A HREF="#methods">METHODS</A></LI>
18 <LI><A HREF="#version">VERSION</A></LI>
19 <LI><A HREF="#bugs">BUGS</A></LI>
20 <LI><A HREF="#see also">SEE ALSO</A></LI>
26 <H1><A NAME="name">NAME</A></H1>
27 <P>FS::part_svc - Object methods for part_svc objects</P>
30 <H1><A NAME="synopsis">SYNOPSIS</A></H1>
32 use FS::part_svc;</PRE>
34 $record = new FS::part_referral \%hash
35 $record = new FS::part_referral { 'column' => 'value' };</PRE>
37 $error = $record->insert;</PRE>
39 $error = $new_record->replace($old_record);</PRE>
41 $error = $record->delete;</PRE>
43 $error = $record->check;</PRE>
46 <H1><A NAME="description">DESCRIPTION</A></H1>
47 <P>An FS::part_svc represents a service definition. FS::part_svc inherits from
48 FS::Record. The following fields are currently supported:</P>
50 <DT><STRONG><A NAME="item_key">svcpart - primary key (assigned automatically for new service definitions)</A></STRONG><BR>
52 <DT><STRONG><A NAME="item_svc_%2D_text_name_of_this_service_definition">svc - text name of this service definition</A></STRONG><BR>
54 <DT><STRONG><A NAME="item_svcdb_%2D_table_used_for_this_service%2E_See_FS%3A">svcdb - table used for this service. See <A HREF=".././FS/svc_acct.html">the FS::svc_acct manpage</A>,
55 <A HREF=".././FS/svc_domain.html">the FS::svc_domain manpage</A>, and <A HREF=".././FS/svc_acct_sm.html">the FS::svc_acct_sm manpage</A>, among others.</A></STRONG><BR>
57 <DT><STRONG><A NAME="item_svcdb__field_%2D_Default_or_fixed_value_for_field_"><EM>svcdb</EM>__<EM>field</EM> - Default or fixed value for <EM>field</EM> in <EM>svcdb</EM>.</A></STRONG><BR>
59 <DT><STRONG><A NAME="item_svcdb__field_flag_%2D_defines_svcdb__field_action%"><EM>svcdb</EM>__<EM>field</EM>_flag - defines <EM>svcdb</EM>__<EM>field</EM> action: null, `D' for default, or `F' for fixed</A></STRONG><BR>
64 <H1><A NAME="methods">METHODS</A></H1>
66 <DT><STRONG><A NAME="item_new">new HASHREF</A></STRONG><BR>
68 Creates a new service definition. To add the service definition to the
69 database, see <A HREF="#insert">insert</A>.
71 <DT><STRONG><A NAME="item_insert">insert</A></STRONG><BR>
73 Adds this service definition to the database. If there is an error, returns
74 the error, otherwise returns false.
76 <DT><STRONG><A NAME="item_delete">delete</A></STRONG><BR>
78 Currently unimplemented.
80 <DT><STRONG><A NAME="item_replace_OLD_RECORD">replace OLD_RECORD</A></STRONG><BR>
82 Replaces OLD_RECORD with this one in the database. If there is an error,
83 returns the error, otherwise returns false.
85 <DT><STRONG><A NAME="item_check">check</A></STRONG><BR>
87 Checks all fields to make sure this is a valid service definition. If there is
88 an error, returns the error, otherwise returns false. Called by the insert
93 <H1><A NAME="version">VERSION</A></H1>
94 <P>$Id: part_svc.html,v 1.1 2001-07-30 07:36:03 ivan Exp $</P>
97 <H1><A NAME="bugs">BUGS</A></H1>
98 <P>Delete is unimplemented.</P>
99 <P>The list of svc_* tables is hardcoded. When svc_acct_pop is renamed, this
103 <H1><A NAME="see also">SEE ALSO</A></H1>
104 <P><A HREF=".././FS/Record.html">the FS::Record manpage</A>, <A HREF=".././FS/part_pkg.html">the FS::part_pkg manpage</A>, <A HREF=".././FS/pkg_svc.html">the FS::pkg_svc manpage</A>, <A HREF=".././FS/cust_svc.html">the FS::cust_svc manpage</A>,
105 <A HREF=".././FS/svc_acct.html">the FS::svc_acct manpage</A>, <A HREF=".././FS/svc_acct_sm.html">the FS::svc_acct_sm manpage</A>, <A HREF=".././FS/svc_domain.html">the FS::svc_domain manpage</A>, schema.html from the
106 base documentation.</P>