This shows you the differences between two versions of the page.
stats:proc:removeresult_sheet [2011/09/29 19:40] Patrick Michel |
stats:proc:removeresult_sheet [2013/07/10 12:34] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Remove Result (Sheet) ====== | ||
- | <code xcend> | ||
- | removeResult(ident uid, ident id, ident studentId, ident sheetId) { | ||
- | assume exists //accounts/account[uid]/assistant[id] || | ||
- | exists //accounts/account[uid]/tutor[id]/group[//exercises/exercise[id]/students/student[studentId]/group]; | ||
- | |||
- | assume exists //exercises/exercise[id]/students/student[studentId]/result[sheetId]; # implies the existence of pretty much everything | ||
- | | ||
- | remove //exercises/exercise[id]/students/student[studentId]/result[sheetId]; | ||
- | } | ||
- | </code> |