1 package FS::queue_stat;
2 use base qw( FS::Record );
5 #use FS::Record qw( qsearch qsearchs );
9 FS::queue_stat - Object methods for queue_stat records
15 $record = new FS::queue_stat \%hash;
16 $record = new FS::queue_stat { 'column' => 'value' };
18 $error = $record->insert;
20 $error = $new_record->replace($old_record);
22 $error = $record->delete;
24 $error = $record->check;
28 An FS::queue_stat object represents statistcs about a completed (queued) job.
29 FS::queue_stat inherits from FS::Record. The following fields are currently
70 Creates a new record. To add the record to the database, see L<"insert">.
72 Note that this stores the hash reference, not a distinct copy of the hash it
73 points to. You can ask the object for a copy with the I<hash> method.
77 sub table { 'queue_stat'; }
81 Adds this record to the database. If there is an error, returns the error,
82 otherwise returns false.
86 Delete this record from the database.
88 =item replace OLD_RECORD
90 Replaces the OLD_RECORD with this one in the database. If there is an error,
91 returns the error, otherwise returns false.
95 Checks all fields to make sure this is a valid record. If there is
96 an error, returns the error, otherwise returns false. Called by the insert
105 $self->ut_numbern('statnum')
106 || $self->ut_number('jobnum')
107 || $self->ut_text('job')
108 || $self->ut_numbern('custnum')
109 || $self->ut_number('insert_date')
110 || $self->ut_number('start_date')
111 || $self->ut_number('end_date')
113 return $error if $error;