1 package FS::part_pop_local;
5 use FS::Record; # qw( qsearchs );
7 @ISA = qw( FS::Record );
11 FS::part_pop_local - Object methods for part_pop_local records
15 use FS::part_pop_local;
17 $record = new FS::part_pop_local \%hash;
18 $record = new FS::part_pop_local { 'column' => 'value' };
20 $error = $record->insert;
22 $error = $new_record->replace($old_record);
24 $error = $record->delete;
26 $error = $record->check;
30 An FS::part_pop_local object represents a local call area. Each
31 FS::part_pop_local record maps a NPA/NXX (area code and exchange) to the POP
32 (see L<FS::svc_acct_pop>) which is a local call. FS::part_pop_local inherits
33 from FS::Record. The following fields are currently supported:
37 =item localnum - primary key (assigned automatically for new accounts)
39 =item popnum - see L<FS::svc_acct_pop>
57 Creates a new point of presence (if only it were that easy!). To add the
58 point of presence to the database, see L<"insert">.
62 sub table { 'part_pop_local'; }
66 Adds this point of presence to the database. If there is an error, returns the
67 error, otherwise returns false.
71 Removes this point of presence from the database.
73 =item replace OLD_RECORD
75 Replaces OLD_RECORD with this one in the database. If there is an error,
76 returns the error, otherwise returns false.
80 Checks all fields to make sure this is a valid point of presence. If there is
81 an error, returns the error, otherwise returns false. Called by the insert
89 $self->ut_numbern('localnum')
90 or $self->ut_numbern('popnum')
91 or $self->ut_text('city')
92 or $self->ut_text('state')
93 or $self->ut_number('npa')
94 or $self->ut_number('nxx')
95 or $self->SUPER::check
108 L<FS::Record>, L<FS::svc_acct_pop>, schema.html from the base documentation.