[system] / trunk / webwork2 / lib / WeBWorK / DB / Record / UserProblem.pm Repository:
ViewVC logotype

View of /trunk/webwork2/lib/WeBWorK/DB/Record/UserProblem.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: 1648 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/UserProblem.pm,v 1.4 2003/12/09 01:12:32 sh002i 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::UserProblem;
   18 use base WeBWorK::DB::Record;
   19 
   20 =head1 NAME
   21 
   22 WeBWorK::DB::Record::UserProblem - represent a record from the problem_user
   23 table.
   24 
   25 =cut
   26 
   27 use strict;
   28 use warnings;
   29 
   30 sub KEYFIELDS {qw(
   31   user_id
   32   set_id
   33   problem_id
   34 )}
   35 
   36 sub NONKEYFIELDS {qw(
   37   source_file
   38   value
   39   max_attempts
   40   problem_seed
   41   status
   42   attempted
   43   last_answer
   44   num_correct
   45   num_incorrect
   46 )}
   47 
   48 sub FIELDS {qw(
   49   user_id
   50   set_id
   51   problem_id
   52   source_file
   53   value
   54   max_attempts
   55   problem_seed
   56   status
   57   attempted
   58   last_answer
   59   num_correct
   60   num_incorrect
   61 )}
   62 
   63 # Should value be float instead of text?
   64 
   65 sub SQL_TYPES {qw(
   66   BLOB
   67   BLOB
   68   INT
   69   TEXT
   70   INT
   71   INT
   72   INT
   73   TEXT
   74   INT
   75   TEXT
   76   INT
   77   INT
   78 )}
   79 
   80 
   81 1;

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9