This shows you the differences between two versions of the page.
stats:proc:createexercise [2011/09/29 11:47] Patrick Michel |
stats:proc:createexercise [2013/07/10 12:41] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Create Exercise ====== | ||
- | |||
- | <code xcend> | ||
- | createExercise(ident id, string lecture, string term) { | ||
- | assume not exists //exercises/exercise[id]; | ||
- | | ||
- | insert //exercises | ||
- | <exercise id=[id] lecture=[lecture] term=[term] > | ||
- | <groups /> | ||
- | <sheets /> | ||
- | <students /> | ||
- | </exercise>; | ||
- | } # roles: admin | ||
- | </code> | ||