[system] / trunk / webwork2 / lib / WeBWorK / Problem.pm Repository:
ViewVC logotype

View of /trunk/webwork2/lib/WeBWorK/Problem.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 323 - (download) (as text) (annotate)
Thu May 30 20:34:46 2002 UTC (17 years, 7 months ago) by malsyned
File size: 449 byte(s)
-Fixed a few interfaces so that they make more sense (I hope)
-Added preliminary templating code to ContentGenerator
-Added a lot of logic to the dispatcher (WeBWorK.pm).  More to come, too.
-Moved lots of things over to CGI.pm, for my convenience while prototyping
-Added preliminary examples of ProblemSets, ProblemSet, and Problem.
 Problem.pm will some day go on to do what ProcessProblem8 does right now,
 so keep your eyes on that one.
--Dennis

    1 package WeBWorK::Problem;
    2 our @ISA = qw(WeBWorK::ContentGenerator);
    3 
    4 use WeBWorK::ContentGenerator;
    5 use Apache::Constants qw(:common);
    6 
    7 sub go() {
    8   my ($self, $problem_set, $problem) = @_;
    9   my $r = $self->{r};
   10   my $courseEnvironment = $self->{courseEnvironment};
   11   my $user = $r->param('user');
   12 
   13   $self->header; return OK if $r->header_only;
   14   $self->top("Problem $problem of problem set $problem_set for $user");
   15   $self->bottom;
   16 
   17   return OK;
   18 }
   19 
   20 1;

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9