| 1 | package WeBWorK::Test; |
1 | package WeBWorK::Test; |
|
|
2 | |
|
|
3 | use Apache::Request; |
|
|
4 | use Apache::Constants qw(:common); |
| 2 | |
5 | |
| 3 | sub new($$$$$) { |
6 | sub new($$$$$) { |
| 4 | my $class = shift; |
7 | my $class = shift; |
| 5 | my ($r, $courseEnvironment, $user, $key) = @_; |
8 | my ($r, $courseEnvironment, $user, $key) = @_; |
| 6 | |
9 | |
| … | |
… | |
| 12 | }; |
15 | }; |
| 13 | bless $self, $class; |
16 | bless $self, $class; |
| 14 | return $self; |
17 | return $self; |
| 15 | } |
18 | } |
| 16 | |
19 | |
| 17 | sub go { |
20 | sub go($) { |
| 18 | my $self = shift; |
21 | my $self = shift; |
| 19 | $self->{r}->content_type("text/html"); |
22 | $self->{r}->content_type("text/html"); |
| 20 | $self->{r}->send_http_header; |
23 | $self->{r}->send_http_header; |
| 21 | |
24 | |
| 22 | # get some stuff together |
25 | # get some stuff together |
| … | |
… | |
| 33 | key = $key |
36 | key = $key |
| 34 | </pre> |
37 | </pre> |
| 35 | </body> |
38 | </body> |
| 36 | </html> |
39 | </html> |
| 37 | EOT |
40 | EOT |
|
|
41 | |
|
|
42 | return OK; |
| 38 | } |
43 | } |
| 39 | |
44 | |
| 40 | 1; |
45 | 1; |