1 package FS::clientapi_session_field;
2 use base qw(FS::Record);
8 FS::clientapi_session_field - Object methods for clientapi_session_field records
12 use FS::clientapi_session_field;
14 $record = new FS::clientapi_session_field \%hash;
15 $record = new FS::clientapi_session_field { 'column' => 'value' };
17 $error = $record->insert;
19 $error = $new_record->replace($old_record);
21 $error = $record->delete;
23 $error = $record->check;
27 An FS::clientapi_session_field object represents a FS::ClientAPI session data
28 field. FS::clientapi_session_field inherits from FS::Record. The following
29 fields are currently supported:
33 =item fieldnum - primary key
35 =item sessionnum - Base ClientAPI sesison (see L<FS::clientapi_session>)
49 Creates a new record. To add the record to the database, see L<"insert">.
51 Note that this stores the hash reference, not a distinct copy of the hash it
52 points to. You can ask the object for a copy with the I<hash> method.
56 # the new method can be inherited from FS::Record, if a table method is defined
58 sub table { 'clientapi_session_field'; }
62 Adds this record to the database. If there is an error, returns the error,
63 otherwise returns false.
67 # the insert method can be inherited from FS::Record
71 Delete this record from the database.
75 # the delete method can be inherited from FS::Record
77 =item replace OLD_RECORD
79 Replaces the OLD_RECORD with this one in the database. If there is an error,
80 returns the error, otherwise returns false.
84 # the replace method can be inherited from FS::Record
88 Checks all fields to make sure this is a valid record. If there is
89 an error, returns the error, otherwise returns false. Called by the insert
94 # the check method should currently be supplied - FS::Record contains some
95 # data checking routines
101 $self->ut_numbern('primary_key')
102 || $self->ut_number('validate_other_fields')
104 return $error if $error;
115 L<FS::clientapi_session>, L<FS::ClientAPI>, L<FS::Record>, schema.html from the