1 package FS::contact_class;
2 use base qw( FS::class_Common );
5 use FS::Record qw( qsearch qsearchs );
9 FS::contact_class - Object methods for contact_class records
13 use FS::contact_class;
15 $record = new FS::contact_class \%hash;
16 $record = new FS::contact_class { 'column' => 'value' };
18 $error = $record->insert;
20 $error = $new_record->replace($old_record);
22 $error = $record->delete;
24 $error = $record->check;
28 An FS::contact_class object represents a contact class. FS::contact_class
29 inherits from FS::class_Common. The following fields are currently supported:
53 Creates a new example. To add the example to the database, see L<"insert">.
55 Note that this stores the hash reference, not a distinct copy of the hash it
56 points to. You can ask the object for a copy with the I<hash> method.
60 sub table { 'contact_class'; }
64 Adds this record to the database. If there is an error, returns the error,
65 otherwise returns false.
69 Delete this record from the database.
71 =item replace OLD_RECORD
73 Replaces the OLD_RECORD with this one in the database. If there is an error,
74 returns the error, otherwise returns false.
77 Checks all fields to make sure this is a valid class. If there is
78 an error, returns the error, otherwise returns false. Called by the insert
85 The author forgot to customize this manpage.
89 L<FS::Record>, schema.html from the base documentation.