User Tools

Site Tools


stats:proc:deleteexam

Differences

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

Link to this comparison view

stats:proc:deleteexam [2011/10/02 10:37]
Patrick Michel
stats:proc:deleteexam [2013/07/10 12:34]
Line 1: Line 1:
-====== Delete Exam ====== 
- 
-<code xcend> 
-deleteExam(ident uid, ident id) { 
-  assume exists //​accounts/​account[uid]/​admin;​ 
- 
-  assume exists //​exams/​exam[id];​ 
-  ​ 
-  assume size(//​acounts/​account/​examiner[id]) = 0; 
- 
-  assume size(//​exams/​exam[id]/​results/​participant) = 0; # don't allow to delete if participants are there 
-  
-  remove //​exams/​exam[id];​ 
-} 
-</​code>​ 
  
stats/proc/deleteexam.txt ยท Last modified: 2013/07/10 12:34 (external edit)