NAME

lonparmset - Handler to set parameters for assessments and course


SYNOPSIS

lonparmset provides an interface to setting course parameters.


DESCRIPTION

This module sets coursewide and assessment parameters.


INTERNAL SUBROUTINES

parmval
Figure out a cascading parameter.

Inputs: $what - a parameter spec (incluse part info and name I.E. 0.weight) $id - a bighash Id number $def - the resource's default value 'stupid emacs

Returns: A list, the first item is the index into the remaining list of items of parm valuse that is the active one, the list consists of parm values at the 11 possible levels

11- resource default 10- map default 9 - General Course 8 - Map or Folder level in course 7 - resource level in course 6 - General for section 5 - Map or Folder level for section 4 - resource level in section 3 - General for specific student 2 - Map or Folder level for specific student 1 - resource level for specific student

valout
Format a value for output.

Inputs: $value, $type

Returns: $value, formatted for output. If $type indicates it is a date, localtime($value) is returned.

plink
Produces a link anchor.

Inputs: $type,$dis,$value,$marker,$return,$call

Returns: scalar with html code for a link which will envoke the javascript function 'pjump'.

extractResourceInformation: Given the course data hash, extractResourceInformation extracts lots of information about the course's resources into a variety of hashes.
Input: See list below:
ids: An array that will contain all of the ids in the course.
typep: hash, id->type, where ``type'' contains the extension of the file, thus, problem exam quiz assess survey form.
keyp: hash, id->key list, will contain a comma seperated list of the meta-data keys available for the given id
allparms: hash, name of parameter->display value (what is the display value?)
allparts: hash, part identification->text representation of part, where the text representation is ``[Part $part]''
allkeys: hash, full key to part->display value (what's display value?)
allmaps: hash, ???
fcat: ???
defp: hash, ???
mapp: ??
symbp: hash, id->full sym?
assessparms
Show assessment data and parameters. This is a large routine that should be simplified and shortened... someday.

Inputs: $r

Returns: nothing

Variables used (guessed by Jeremy):

pscat: ParameterS CATegories? ends up a list of the types of parameters that exist, e.g., tol, weight, acc, opendate, duedate, answerdate, sig, maxtries, type.
psprt: ParameterS PaRTs? a list of the parts of a problem that we are displaying? Used to display only selected parts?
allmaps:
crsenv
Show and set course data and parameters. This is a large routine that should be simplified and shortened... someday.

Inputs: $r

Returns: nothing

  • handler
    Main handler. Calls &assessparms and &crsenv subroutines.