[system] / trunk / webwork-modperl / lib / WeBWorK / DB / Record / Set.pm Repository:
ViewVC logotype

View of /trunk/webwork-modperl/lib/WeBWorK/DB/Record/Set.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3209 - (download) (as text) (annotate)
Tue Mar 29 21:23:34 2005 UTC (14 years, 10 months ago) by jj
File size: 1442 byte(s)
Adding sql types for database entries for use on creation.  Many of them
can probably be tweaked to take up less space (e.g., we don't need 4 bytes
to store the published information).

    1 ################################################################################
    2 # WeBWorK Online Homework Delivery System
    3 # Copyright  2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
    4 # $CVSHeader: webwork-modperl/lib/WeBWorK/DB/Record/Set.pm,v 1.8 2004/07/07 14:37:32 gage Exp $
    5 #
    6 # This program is free software; you can redistribute it and/or modify it under
    7 # the terms of either: (a) the GNU General Public License as published by the
    8 # Free Software Foundation; either version 2, or (at your option) any later
    9 # version, or (b) the "Artistic License" which comes with this package.
   10 #
   11 # This program is distributed in the hope that it will be useful, but WITHOUT
   12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   13 # FOR A PARTICULAR PURPOSE.  See either the GNU General Public License or the
   14 # Artistic License for more details.
   15 ################################################################################
   16 
   17 package WeBWorK::DB::Record::Set;
   18 use base WeBWorK::DB::Record;
   19 
   20 =head1 NAME
   21 
   22 WeBWorK::DB::Record::Set - represent a record from the set table.
   23 
   24 =cut
   25 
   26 use strict;
   27 use warnings;
   28 
   29 sub KEYFIELDS {qw(
   30   set_id
   31 )}
   32 
   33 sub NONKEYFIELDS {qw(
   34   set_header
   35   hardcopy_header
   36   open_date
   37   due_date
   38   answer_date
   39   published
   40 )}
   41 
   42 sub FIELDS {qw(
   43   set_id
   44   set_header
   45   hardcopy_header
   46   open_date
   47   due_date
   48   answer_date
   49   published
   50 )}
   51 
   52 sub SQL_TYPES {qw(
   53   BLOB
   54   TEXT
   55   TEXT
   56   BIGINT
   57   BIGINT
   58   BIGINT
   59   INT
   60 )}
   61 
   62 1;

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9