1 package FS::circuit_termination;
4 use base qw( FS::Record );
5 use FS::Record qw( qsearch qsearchs );
9 FS::circuit_termination - Object methods for circuit_termination records
13 use FS::circuit_termination;
15 $record = new FS::circuit_termination \%hash;
16 $record = new FS::circuit_termination { 'column' => 'value' };
18 $error = $record->insert;
20 $error = $new_record->replace($old_record);
22 $error = $record->delete;
24 $error = $record->check;
28 An FS::circuit_termination object represents a central office circuit
29 interface type. FS::circuit_termination inherits from FS::Record. The
30 following fields are currently supported:
34 =item termnum - primary key
36 =item termination - description of the termination type
38 =item disabled - 'Y' if this is disabled
48 Creates a new example. To add the example to the database, see L<"insert">.
52 sub table { 'circuit_termination'; }
56 Adds this record to the database. If there is an error, returns the error,
57 otherwise returns false.
61 Delete this record from the database.
63 =item replace OLD_RECORD
65 Replaces the OLD_RECORD with this one in the database. If there is an error,
66 returns the error, otherwise returns false.
70 Checks all fields to make sure this is a valid example. If there is
71 an error, returns the error, otherwise returns false. Called by the insert
80 $self->ut_numbern('termnum')
81 || $self->ut_text('termination')
82 || $self->ut_flag('disabled')
84 return $error if $error;