This shows you the differences between two versions of the page.
stats:proc:createexercise [2011/09/28 23:49] 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] />; | ||
- | } # roles: admin | ||
- | </code> | ||