version 1.12, 2007/10/15 09:47:29
|
version 1.15, 2008/11/20 14:37:37
|
Line 26
|
Line 26
|
# http://www.lon-capa.org/ |
# http://www.lon-capa.org/ |
# |
# |
|
|
|
|
|
|
package Apache::externalresponse; |
package Apache::externalresponse; |
use strict; |
use strict; |
use HTTP::Request::Common; |
use HTTP::Request::Common; |
Line 36 BEGIN {
|
Line 38 BEGIN {
|
&Apache::lonxml::register('Apache::externalresponse',('externalresponse')); |
&Apache::lonxml::register('Apache::externalresponse',('externalresponse')); |
} |
} |
|
|
#FIXME |
=pod |
# send of response params and their current values (form good enough? |
|
# what parameters to send?) |
=head1 FIXME (start_externalresponse) |
# Need to get returned message displayed |
|
|
send of response params and their current values (form good enough? what parameters to send?) |
|
Need to get returned message displayed |
|
|
|
=cut |
|
|
|
|
sub start_externalresponse { |
sub start_externalresponse { |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; |
my $result; |
my $result; |
Line 125 sub end_externalresponse {
|
Line 133 sub end_externalresponse {
|
&Apache::lonxml::increment_counter($increment, "$part.$id"); |
&Apache::lonxml::increment_counter($increment, "$part.$id"); |
|
|
if ($target eq 'analyze') { |
if ($target eq 'analyze') { |
|
$Apache::lonhomework::analyze{"$part.$id.type"} = 'externalresponse'; |
&Apache::lonhomework::set_bubble_lines(); |
&Apache::lonhomework::set_bubble_lines(); |
} |
} |
} |
} |
Line 142 sub format_prior_response {
|
Line 151 sub format_prior_response {
|
__END__ |
__END__ |
|
|
|
|
|
=pod |
|
|
|
=head1 NAME |
|
|
|
Apache::externalresponse.pm |
|
|
|
=head1 SYNOPSIS |
|
|
|
Handler to evaluate externally graded responses. |
|
|
|
This is part of the LearningOnline Network with CAPA project |
|
described at http://www.lon-capa.org. |
|
|
|
=head1 SUBROUTINES |
|
|
|
=over |
|
|
|
=item start_externalresponse() |
|
|
|
=item end_externalresponse() |
|
|
|
=item format_prior_response() |
|
|
|
=back |
|
|
|
=cut |
|
|