--- loncom/html/adm/help/tex/Problem_LON-CAPA_Functions.tex 2010/02/05 21:49:02 1.19 +++ loncom/html/adm/help/tex/Problem_LON-CAPA_Functions.tex 2012/01/03 21:56:35 1.23 @@ -128,10 +128,10 @@ Option 1 - \&map(\$seed,[$\backslash$\$w \&to\_string(\$x), \&to\_string(\$x,\$y) & If x is an integer, returns a string. If x is real than the output is a string with format given by y. For example, if x = 12.3456, \&to\_string(x,''.3F'') = 12.345 and \&to\_string(x,''.3E'') = 1.234E+01. \\ \hline -\&class(), \&sec() & Returns null string, class descriptive name, section number, set number and null string. \\ +\&class(), \&sec(), \&classid() & Returns null string, class descriptive name, section number, class id, set number and null string. \\ \hline -\&name(), \&student\_number(), \&firstname(), \&lastname() & Return the full name in the following format: lastname, firstname initial. Student\_number returns the student 9-alphanumeric string. The functions firstname and lastname return just that part of the name. If undefined, the functions return null. \\ +\&name(), \&student\_number(), \&firstname(), \&middlename(), \&lastname() & Return the full name in the following format: lastname, firstname initial. Student\_number returns the student 9-alphanumeric string. The functions firstname, middlename, and lastname return just that part of the name. If undefined, the functions return null. \\ \hline \&check\_status(\$partid) &Returns a number identifying the current status of a part. True values mean that a part is ``done'' (either unanswerable because of tries exhaustion, or correct) or a false value if a part can still be attempted. If \$part is unspecified, it will check either the current $<$part$>$'s status or if outside of a $<$part$>$, check the status of previous $<$part$>$. The full set of return codes are: 'undef' means it is unattempted, 0 means it is attempted and wrong but still has tries, 1 means it is marked correct, 2 means they have exceed maximum number of tries, 3 means it after the answer date.\\ \hline @@ -144,6 +144,15 @@ epoch (UTC), which can be used in calcul \&submission(\$partid,\$responseid,\$version) & Returns what the student submitted for response \$responseid in part \$partid. You can get these IDs from the XML-code of the problem. \$version is optional and returns the \$version-th submission of the student that was graded.\\ \hline +\¶meter\_setting(\$name,\$partid) & Returns the parameter setting \$name. Partid is optional.\\ +\hline + +\&stored\_data(\$name,\$partid) & Returns the stored data \$name. Partid is optional.\\ +\hline +\&wrong\_bubbles(\$correct,\$lower,\$upper,\$step,@given) & Returns an array that can be used for wrong answers in numerical responses. The first argument is the correct answer, the next arguments are the lower and upper boundaries for the bubbles, as well as the step size. The next argument is an +optional array of wrong answers that should be included.\\ +\hline + \¤tpart() & Returns the ID of the current part.\\ \hline