- web interface for hourly account charges!
[freeside.git] / httemplate / docs / man / FS / part_svc.html
1 <HTML>
2 <HEAD>
3 <TITLE>FS::part_svc - Object methods for part_svc objects</TITLE>
4 <LINK REV="made" HREF="mailto:perl@packages.debian.org">
5 </HEAD>
6
7 <BODY>
8
9 <A NAME="__index__"></A>
10 <!-- INDEX BEGIN -->
11
12 <UL>
13
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>
21 </UL>
22 <!-- INDEX END -->
23
24 <HR>
25 <P>
26 <H1><A NAME="name">NAME</A></H1>
27 <P>FS::part_svc - Object methods for part_svc objects</P>
28 <P>
29 <HR>
30 <H1><A NAME="synopsis">SYNOPSIS</A></H1>
31 <PRE>
32   use FS::part_svc;</PRE>
33 <PRE>
34   $record = new FS::part_svc \%hash
35   $record = new FS::part_svc { 'column' =&gt; 'value' };</PRE>
36 <PRE>
37   $error = $record-&gt;insert;</PRE>
38 <PRE>
39   $error = $new_record-&gt;replace($old_record);</PRE>
40 <PRE>
41   $error = $record-&gt;delete;</PRE>
42 <PRE>
43   $error = $record-&gt;check;</PRE>
44 <P>
45 <HR>
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>
49 <DL>
50 <DT><STRONG><A NAME="item_key">svcpart - primary key (assigned automatically for new service definitions)</A></STRONG><BR>
51 <DD>
52 <DT><STRONG><A NAME="item_svc_%2D_text_name_of_this_service_definition">svc - text name of this service definition</A></STRONG><BR>
53 <DD>
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_forward.html">the FS::svc_forward manpage</A>, among others.</A></STRONG><BR>
56 <DD>
57 <DT><STRONG><A NAME="item_disabled_%2D_Disabled_flag%2C_empty_or_%60Y%27">disabled - Disabled flag, empty or `Y'</A></STRONG><BR>
58 <DD>
59 </DL>
60 <P>
61 <HR>
62 <H1><A NAME="methods">METHODS</A></H1>
63 <DL>
64 <DT><STRONG><A NAME="item_new">new HASHREF</A></STRONG><BR>
65 <DD>
66 Creates a new service definition.  To add the service definition to the
67 database, see <A HREF="#insert">insert</A>.
68 <P></P>
69 <DT><STRONG><A NAME="item_insert">insert</A></STRONG><BR>
70 <DD>
71 Adds this service definition to the database.  If there is an error, returns
72 the error, otherwise returns false.
73 <P></P>
74 <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>
75 <DD>
76 <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>
77 <DD>
78 <DT><STRONG><A NAME="item_delete">delete</A></STRONG><BR>
79 <DD>
80 Currently unimplemented.
81 <P></P>
82 <DT><STRONG><A NAME="item_replace_OLD_RECORD">replace OLD_RECORD</A></STRONG><BR>
83 <DD>
84 Replaces OLD_RECORD with this one in the database.  If there is an error,
85 returns the error, otherwise returns false.
86 <P></P>
87 <DT><STRONG><A NAME="item_check">check</A></STRONG><BR>
88 <DD>
89 Checks all fields to make sure this is a valid service definition.  If there is
90 an error, returns the error, otherwise returns false.  Called by the insert
91 and replace methods.
92 <P></P>
93 <DT><STRONG><A NAME="item_part_svc_column_COLUMNNAME">part_svc_column COLUMNNAME</A></STRONG><BR>
94 <DD>
95 Returns the part_svc_column object (see <A HREF=".././FS/part_svc_column.html">the FS::part_svc_column manpage</A>) for the given
96 COLUMNNAME, or a new part_svc_column object if none exists.
97 <P></P>
98 <DT><STRONG><A NAME="item_all_part_svc_column">all_part_svc_column</A></STRONG><BR>
99 <DD>
100 </DL>
101 <P>
102 <HR>
103 <H1><A NAME="version">VERSION</A></H1>
104 <P>$Id: part_svc.html,v 1.3 2002-01-29 17:42:46 ivan Exp $</P>
105 <P>
106 <HR>
107 <H1><A NAME="bugs">BUGS</A></H1>
108 <P>Delete is unimplemented.</P>
109 <P>The list of svc_* tables is hardcoded.  When svc_acct_pop is renamed, this
110 should be fixed.</P>
111 <P>
112 <HR>
113 <H1><A NAME="see also">SEE ALSO</A></H1>
114 <P><A HREF=".././FS/Record.html">the FS::Record manpage</A>, <A HREF=".././FS/part_svc_column.html">the FS::part_svc_column 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>,
115 <A HREF=".././FS/cust_svc.html">the FS::cust_svc manpage</A>, <A HREF=".././FS/svc_acct.html">the FS::svc_acct manpage</A>, <A HREF=".././FS/svc_forward.html">the FS::svc_forward manpage</A>, <A HREF=".././FS/svc_domain.html">the FS::svc_domain manpage</A>,
116 schema.html from the base documentation.</P>
117
118 </BODY>
119
120 </HTML>