User Tools

Site Tools


stats:proc:removeresult_task

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
stats:proc:removeresult_task [2011/11/02 14:39] – Patrick Michelstats:proc:removeresult_task [2013/07/10 12:34] (current) – external edit 127.0.0.1
Line 3: Line 3:
 <code xcend> <code xcend>
 removeResult(ident uid, ident id, ident studentId, ident taskId) { removeResult(ident uid, ident id, ident studentId, ident taskId) {
-  assume exists //accounts/account[uid]/examiner[id];+  assume exists /account[uid]/examiner[id];
  
-  assume exists //exams/exam[id]/results/participant[studentId]/result[taskId];+  assume exists /exam[id]/participant[studentId]/result[taskId];
     # implies the exam, account, student role and task exist by integrity     # implies the exam, account, student role and task exist by integrity
      
-  remove //exams/exam[id]/results/participant[studentId]/result[taskId];+  remove /exam[id]/participant[studentId]/result[taskId];
 } }
 </code> </code>
stats/proc/removeresult_task.1320241170.txt.gz · Last modified: by Patrick Michel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki