This shows you the differences between two versions of the page.
stats:proc:createsheet [2011/09/29 00:01] Patrick Michel |
stats:proc:createsheet [2013/07/10 12:41] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Create Sheet ====== | ||
- | <code xcend> | ||
- | createSheet(ident id, ident sheetId, double maxPoints) { | ||
- | assume exists //exercises/exercise[id]; | ||
- | assume not exists //exercises/exercise[id]/sheets/sheet[sheetId]; | ||
- | | ||
- | assume maxPoints >= 0; | ||
- | | ||
- | insert //exercises/exercise[id]/sheets <sheet id=[sheetId] maxPoints=[maxPoints] />; | ||
- | } # roles: assistant[id] | ||
- | </code> |