1 package FS::part_router_field;
5 use FS::Record qw( qsearchs );
10 @ISA = qw( FS::Record );
14 FS::part_router_field - Object methods for part_router_field records
18 use FS::part_router_field;
20 $record = new FS::part_router_field \%hash;
21 $record = new FS::part_router_field { 'column' => 'value' };
23 $error = $record->insert;
25 $error = $new_record->replace($old_record);
27 $error = $record->delete;
29 $error = $record->check;
33 A part_router_field represents an xfield definition for routers. For more
34 information on xfields, see L<FS::part_sb_field>.
36 The following fields are supported:
40 =item routerfieldpart - primary key (assigned automatically)
42 =item name - name of field
50 (See L<FS::part_sb_field> for details on these fields.)
58 Create a new record. To add the record to the database, see "insert".
62 sub table { 'part_router_field'; }
66 Adds this record to the database. If there is an error, returns the error,
67 otherwise returns false.
71 Deletes this record from the database. If there is an error, returns the
72 error, otherwise returns false.
74 =item replace OLD_RECORD
76 Replaces OLD_RECORD with this one in the database. If there is an error,
77 returns the error, otherwise returns false.
81 Checks all fields to make sure this is a valid record. If there is an error,
82 returns the error, otherwise returns false. Called by the insert and replace
91 $self->name =~ /^([a-z0-9_\-\.]{1,15})$/i
92 or return "Invalid field name for part_router_field";
99 Equivalent to "eval($part_router_field->list_source)".
105 return () unless $self->list_source;
106 my @opts = eval($self->list_source);
123 Needless duplication of much of FS::part_sb_field, with the result that most of
124 the warnings about it apply here also.
128 FS::svc_broadband, FS::router, FS::router_field, schema.html
129 from the base documentation.