This shows you the differences between two versions of the page.
stats:proc:deletesheet [2011/09/28 19:59] Patrick Michel created |
stats:proc:deletesheet [2013/07/10 12:34] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Delete Sheet ====== | ||
- | <code xcend> | ||
- | deleteSheet(ident id, ident sheetId) { | ||
- | assume exists //exercises/exercise[id]/sheets/sheet[sheetId]; # implies existence of the exercise | ||
- | | ||
- | assume size(//exercises/exercise[id]/students/student/result[sheetId]) = 0; | ||
- | | ||
- | remove //exercises/exercise[id]/sheets/sheet[sheetId]; | ||
- | } | ||
- | </code> |