$helper->{'VARS'}{'type'} eq 'schedulable_student'
Time students can start reserving:
return &{$helper->{DATA}{origslot}}('startreserve','anytime');
if (defined($val) && $val > $helper->{'VARS'}{'starttime'}) {
return 'Reservation time must come before the slot has started.';
}
return undef;
Time students can no longer reserve:
return &{$helper->{DATA}{origslot}}('endreserve','anytime');
if (defined($val) && $val > $helper->{'VARS'}{'starttime'}) {
return 'Reservation end time must come before the slot has started.';
}
return undef;
Maximum number of students allowed in this slot:
if ($val ne '' && $val=~/\D/) { return 'Must be numeric.'; }
return undef;
return &{$helper->{DATA}{origslot}}('maxspace');
Period of time when this slot can only be uniquely chosen:
Start:
my $default=&{$helper->{DATA}{origslot}}('uniqueperiod','anytime');
if ($default eq 'anytime') { return 'anytime' };
if (ref($default)) { return $default->[0]; }
return 'anytime';
End:
my $default=&{$helper->{DATA}{origslot}}('uniqueperiod','anytime');
if ($default eq 'anytime') { return 'anytime' };
if (ref($default)) { return $default->[1]; }
return 'anytime';
if (defined($val) && $val < $helper->{'VARS'}{'startunique'}) {
return 'End time must be later than the start time.';
}
return undef;
Message(s) triggered by reservation change by student
Sent to student
Sent to student and added to user notes
None sent and no record in user notes
my $default=&{$helper->{DATA}{origslot}}('reservationmsg');
if ($default eq 'only_student') { return $default; }
if ($default eq 'student_and_user_notes_screen') { return $default; }
return 'none';