1 package FS::part_svc_msgcat;
2 use base qw( FS::Record );
10 FS::part_svc_msgcat - Object methods for part_svc_msgcat records
14 use FS::part_svc_msgcat;
16 $record = new FS::part_svc_msgcat \%hash;
17 $record = new FS::part_svc_msgcat { 'column' => 'value' };
19 $error = $record->insert;
21 $error = $new_record->replace($old_record);
23 $error = $record->delete;
25 $error = $record->check;
29 An FS::part_svc_msgcat object represents localized labels of a service
30 definition. FS::part_svc_msgcat inherits from FS::Record. The following
31 fields are currently supported:
49 Localized service name (customer-viewable)
59 Creates a new record. To add the record to the database, see L<"insert">.
61 Note that this stores the hash reference, not a distinct copy of the hash it
62 points to. You can ask the object for a copy with the I<hash> method.
66 # the new method can be inherited from FS::Record, if a table method is defined
68 sub table { 'part_svc_msgcat'; }
72 Adds this record to the database. If there is an error, returns the error,
73 otherwise returns false.
77 # the insert method can be inherited from FS::Record
81 Delete this record from the database.
85 # the delete method can be inherited from FS::Record
87 =item replace OLD_RECORD
89 Replaces the OLD_RECORD with this one in the database. If there is an error,
90 returns the error, otherwise returns false.
94 # the replace method can be inherited from FS::Record
98 Checks all fields to make sure this is a valid record. If there is
99 an error, returns the error, otherwise returns false. Called by the insert
104 # the check method should currently be supplied - FS::Record contains some
105 # data checking routines
111 $self->ut_numbern('svcpartmsgnum')
112 || $self->ut_foreign_key('svcpart', 'part_svc', 'svcpart')
113 || $self->ut_enum('locale', [ FS::Locales->locales ] )
114 || $self->ut_text('svc')
116 return $error if $error;
124 FS::part_svc->by_key($self->svcpart);
133 L<FS::part_svc>, L<FS::Record>, schema.html from the base documentation.