1 package FS::access_user_session_log;
2 use base qw( FS::Record );
5 #use FS::Record qw( qsearch qsearchs );
9 FS::access_user_session_log - Object methods for access_user_session_log records
13 use FS::access_user_session_log;
15 $record = new FS::access_user_session_log \%hash;
16 $record = new FS::access_user_session_log { 'column' => 'value' };
18 $error = $record->insert;
20 $error = $new_record->replace($old_record);
22 $error = $record->delete;
24 $error = $record->check;
28 An FS::access_user_session_log object represents an log of an employee session.
29 FS::access_user_session_log inherits from FS::Record. The following fields
30 are currently supported:
67 Creates a new log entry. To add the entry to the database, see L<"insert">.
69 Note that this stores the hash reference, not a distinct copy of the hash it
70 points to. You can ask the object for a copy with the I<hash> method.
74 sub table { 'access_user_session_log'; }
78 Adds this record to the database. If there is an error, returns the error,
79 otherwise returns false.
83 Delete this record from the database.
85 =item replace OLD_RECORD
87 Replaces the OLD_RECORD with this one in the database. If there is an error,
88 returns the error, otherwise returns false.
92 Checks all fields to make sure this is a valid log entry. If there is
93 an error, returns the error, otherwise returns false. Called by the insert
102 $self->ut_number('usernum')
103 || $self->ut_numbern('start_date')
104 || $self->ut_numbern('last_date')
105 || $self->ut_numbern('logout_date')
106 || $self->ut_text('logout_type')
108 return $error if $error;