1 package FS::part_ac_field;
5 use FS::Record qw( qsearchs );
10 @ISA = qw( FS::Record );
14 FS::part_ac_field - Object methods for part_ac_field records
18 use FS::part_ac_field;
20 $record = new FS::part_ac_field \%hash;
21 $record = new FS::part_ac_field { 'column' => 'value' };
23 $error = $record->insert;
25 $error = $new_record->replace($old_record);
27 $error = $record->delete;
29 $error = $record->check;
46 Create a new record. To add the record to the database, see L<"insert">.
50 sub table { 'part_ac_field'; }
54 Adds this record to the database. If there is an error, returns the error,
55 otherwise returns false.
59 Deletes this record from the database. If there is an error, returns the
60 error, otherwise returns false.
62 =item replace OLD_RECORD
64 Replaces OLD_RECORD with this one in the database. If there is an error,
65 returns the error, otherwise returns false.
69 Checks all fields to make sure this is a valid record. If there is an error,
70 returns the error, otherwise returns false. Called by the insert and replace
79 $self->name =~ /^([a-z0-9_\-\.]{1,15})$/i
80 or return "Invalid field name for part_ac_field";
96 L<FS::svc_broadband>, L<FS::ac>, L<FS::ac_block>, L<FS::ac_field>, schema.html
97 from the base documentation.