This shows you the differences between two versions of the page.
stats:proc:deleteexam [2011/09/29 19:28] 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; | ||
- | | ||
- | remove //exams/exam[id]; | ||
- | } | ||
- | </code> | ||