default to a session cookie instead of setting an explicit timeout, weird timezone...
[freeside.git] / FS / FS / queue_arg.pm
index 39c7119..09c0166 100644 (file)
@@ -1,10 +1,7 @@
 package FS::queue_arg;
+use base qw(FS::Record);
 
 use strict;
-use vars qw( @ISA );
-use FS::Record qw( qsearch qsearchs );
-
-@ISA = qw(FS::Record);
 
 =head1 NAME
 
@@ -36,6 +33,8 @@ FS::Record.  The following fields are currently supported:
 
 =item jobnum - see L<FS::queue>
 
+=item frozen - argument is frozen with Storable
+
 =item arg - argument
 
 =back
@@ -46,7 +45,7 @@ FS::Record.  The following fields are currently supported:
 
 =item new HASHREF
 
-Creates a new argument.  To add the example to the database, see L<"insert">.
+Creates a new argument.  To add the argument to the database, see L<"insert">.
 
 Note that this stores the hash reference, not a distinct copy of the hash it
 points to.  You can ask the object for a copy with the I<hash> method.
@@ -96,6 +95,7 @@ sub check {
   my $error =
     $self->ut_numbern('argnum')
     || $self->ut_numbern('jobnum')
+    || $self->ut_enum('frozen', [ '', 'Y' ])
     || $self->ut_anything('arg')
   ;
   return $error if $error;