# 'dateTypeHash' should really be renamed now that we have tries... my %dateTypeHash = ('open_date' => "opening date", 'due_date' => "due date", 'answer_date' => "answer open date", 'tries' => 'number of tries' ); my %levelTypeHash = ('whole_course' => "all problems in the course", 'map' => 'the selected folder', 'resource' => 'the selected problem'); $helper->{DATA}->{'dateTypeHash'} = \%dateTypeHash; $helper->{DATA}->{'levelTypeHash'} = \%levelTypeHash; $helper->{DATA}->{'levelType'} = sub { return $helper->{DATA}->{'levelTypeHash'}->{$helper->{VARS}->{GRANULARITY}}; }; $helper->{DATA}->{'dateType'} = sub { return $helper->{DATA}->{'dateTypeHash'}->{$helper->{VARS}->{ACTION_TYPE}}; };

This helper will assist you in setting the open, due, and answer dates for problems, or in setting the number of tries for problems.

You will be asked to select which problems you wish to set the parameters for, then what parameter you wish to set, then you will select whom the setting affects.

After the helper is done, you will be shown where in the advanced interface you would have gone to set the parameter you have chosen, so in the future you can do it directly.

Press Next -> to begin, or select <- Previous to go back to the previous screen.

Which problems do you wish to set a parameter for? Every problem in the course Every problem in a particular folder One particular problem Select the folder you wish to set the parameter for: CHOOSE_ACTION return $res->is_map() return $res->map_pc(); Select the problem you wish to set the parameter for: CHOOSE_ACTION return $res->is_map || $res->is_problem() return $res->is_problem() return 'What parameter do you want to set for ' . &{$helper->{DATA}->{'levelType'}}() . '?'; CHOOSE_DATE Set an open date Set a due date Set an answer open date Set the number of tries return 'How many tries should be set for ' . &{$helper->{DATA}->{'levelType'}}() . '?
';
if ($val !~ /^[1234567890]+$/) { return '"' . $element->getValue() . '" is not '. 'an acceptable number of tries. Tries must be a postive number ' . 'with no decimal point.';} return undef;
return 'What should the ' . &{$helper->{DATA}->{'dateType'}}() . ' be set to?

';
CHOOSE_STUDENT_LEVEL
return 'Set ' . &{$helper->{DATA}->{'dateType'}}() . 'for ' . &{$helper->{DATA}->{'levelType'}}() . ' for. . .'; . . . for all students in the course . . . for a particular section . . . for an individual student return 'Please select the section you wish to set the ' . &{$helper->{DATA}->{'dateType'}}() . ' for:
';
return 'Please select the student you wish to set the ' . &{$helper->{DATA}->{'dateType'}}() . ' for:
';