3 <TITLE>FS::svc_acct_pop - Object methods for svc_acct_pop records</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="#subroutines">SUBROUTINES</A></LI>
19 <LI><A HREF="#version">VERSION</A></LI>
20 <LI><A HREF="#bugs">BUGS</A></LI>
21 <LI><A HREF="#see also">SEE ALSO</A></LI>
27 <H1><A NAME="name">NAME</A></H1>
28 <P>FS::svc_acct_pop - Object methods for svc_acct_pop records</P>
31 <H1><A NAME="synopsis">SYNOPSIS</A></H1>
33 use FS::svc_acct_pop;</PRE>
35 $record = new FS::svc_acct_pop \%hash;
36 $record = new FS::svc_acct_pop { 'column' => 'value' };</PRE>
38 $error = $record->insert;</PRE>
40 $error = $new_record->replace($old_record);</PRE>
42 $error = $record->delete;</PRE>
44 $error = $record->check;</PRE>
46 $html = FS::svc_acct_pop::popselector( $popnum, $state );</PRE>
49 <H1><A NAME="description">DESCRIPTION</A></H1>
50 <P>An FS::svc_acct object represents an point of presence. FS::svc_acct_pop
51 inherits from FS::Record. The following fields are currently supported:</P>
53 <DT><STRONG><A NAME="item_key">popnum - primary key (assigned automatically for new accounts)</A></STRONG><BR>
55 <DT><STRONG><A NAME="item_city">city</A></STRONG><BR>
57 <DT><STRONG><A NAME="item_state">state</A></STRONG><BR>
59 <DT><STRONG><A NAME="item_ac_%2D_area_code">ac - area code</A></STRONG><BR>
61 <DT><STRONG><A NAME="item_exch_%2D_exchange">exch - exchange</A></STRONG><BR>
63 <DT><STRONG><A NAME="item_loc_%2D_rest_of_number">loc - rest of number</A></STRONG><BR>
68 <H1><A NAME="methods">METHODS</A></H1>
70 <DT><STRONG><A NAME="item_new">new HASHREF</A></STRONG><BR>
72 Creates a new point of presence (if only it were that easy!). To add the
73 point of presence to the database, see <A HREF="#insert">insert</A>.
75 <DT><STRONG><A NAME="item_insert">insert</A></STRONG><BR>
77 Adds this point of presence to the database. If there is an error, returns the
78 error, otherwise returns false.
80 <DT><STRONG><A NAME="item_delete">delete</A></STRONG><BR>
82 Removes this point of presence from the database.
84 <DT><STRONG><A NAME="item_replace_OLD_RECORD">replace OLD_RECORD</A></STRONG><BR>
86 Replaces OLD_RECORD with this one in the database. If there is an error,
87 returns the error, otherwise returns false.
89 <DT><STRONG><A NAME="item_check">check</A></STRONG><BR>
91 Checks all fields to make sure this is a valid point of presence. If there is
92 an error, returns the error, otherwise returns false. Called by the insert
95 <DT><STRONG><A NAME="item_text">text</A></STRONG><BR>
98 <P>``$city, $state ($ac)/$exch''</P>
102 <H1><A NAME="subroutines">SUBROUTINES</A></H1>
104 <DT><STRONG><A NAME="item_popselector_%5B_POPNUM_%5B_STATE_%5D_%5D">popselector [ POPNUM [ STATE ] ]</A></STRONG><BR>
109 <H1><A NAME="version">VERSION</A></H1>
110 <P>$Id: svc_acct_pop.html,v 1.3 2002-01-29 17:42:46 ivan Exp $</P>
113 <H1><A NAME="bugs">BUGS</A></H1>
114 <P>It should be renamed to part_pop.</P>
115 <P>popselector? putting web ui components in here? they should probably live
116 somewhere else...</P>
119 <H1><A NAME="see also">SEE ALSO</A></H1>
120 <P><A HREF=".././FS/Record.html">the FS::Record manpage</A>, <A HREF=".././FS/svc_acct.html">the FS::svc_acct manpage</A>, <A HREF=".././FS/part_pop_local.html">the FS::part_pop_local manpage</A>, schema.html from the
121 base documentation.</P>