[LON-CAPA-cvs] cvs: loncom /html/adm/help/tex Problem_LON-CAPA_Functions.tex all_functions_table.tex
bisitz
bisitz at source.lon-capa.org
Thu Jun 12 10:44:27 EDT 2014
bisitz Thu Jun 12 14:44:27 2014 EDT
Modified files:
/loncom/html/adm/help/tex all_functions_table.tex
Problem_LON-CAPA_Functions.tex
Log:
Added info about part 0 (no parts) and version 0 (latest submission).
Index: loncom/html/adm/help/tex/all_functions_table.tex
diff -u loncom/html/adm/help/tex/all_functions_table.tex:1.13 loncom/html/adm/help/tex/all_functions_table.tex:1.14
--- loncom/html/adm/help/tex/all_functions_table.tex:1.13 Mon Nov 21 16:19:46 2011
+++ loncom/html/adm/help/tex/all_functions_table.tex Thu Jun 12 14:44:27 2014
@@ -106,7 +106,7 @@
\hline
&\&open\_date\_epoch(\$partid), \&due\_date\_epoch(\$partid), \&answer\_date\_epoch(\$partid) &Problem open date, due date and answer date in seconds after the epoch. These numbers can be used in calculations.&\\
\hline
-&\&submission(\$partid,\$responseid,\$version) & Returns what the student submitted for response \$responseid in part \$part. 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.&\\
+&\&submission(\$partid,\$responseid,\$version) & Returns what the student submitted for response \$responseid in part \$part. You can get these IDs from the XML-code of the problem. Use 0 as \$partid for problems without parts. \$version is optional and returns the \$version-th submission of the student that was graded. If \$version is 0 or ommitted, the latest submission is returned.&\\
\hline
&\¤tpart() & Returns the ID of the current part.&\\ \hline
Index: loncom/html/adm/help/tex/Problem_LON-CAPA_Functions.tex
diff -u loncom/html/adm/help/tex/Problem_LON-CAPA_Functions.tex:1.27 loncom/html/adm/help/tex/Problem_LON-CAPA_Functions.tex:1.28
--- loncom/html/adm/help/tex/Problem_LON-CAPA_Functions.tex:1.27 Fri Oct 18 03:43:14 2013
+++ loncom/html/adm/help/tex/Problem_LON-CAPA_Functions.tex Thu Jun 12 14:44:27 2014
@@ -141,7 +141,7 @@
epoch (UTC), which can be used in calculations.\\
\hline
-\&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.\\
+\&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. Use 0 as \$partid for problems without parts. \$version is optional and returns the \$version-th submission of the student that was graded. If \$version is 0 or ommitted, the latest submission is returned.\\
\hline
\¶meter\_setting(\$name,\$partid) & Returns the parameter setting \$name. Partid is optional.\\
More information about the LON-CAPA-cvs
mailing list