This shows you the differences between two versions of the page.
stats:proc:createexam [2012/01/11 14:49] Patrick Michel |
stats:proc:createexam [2013/07/10 12:42] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Create Exam ====== | ||
- | |||
- | <code xcend> | ||
- | createExam(ident uid, ident id, string title, string date, string time, string location) { | ||
- | assume exists //accounts/account[uid]/admin; | ||
- | |||
- | assume not exists //exams/exam[id]; | ||
- | | ||
- | insert //exams | ||
- | <exam id=[id] title=[title] date=[date] time=[time] location=[location] free=[false] published=[false] > | ||
- | <tasks /> | ||
- | <grades /> | ||
- | <results /> | ||
- | </exam>; | ||
- | } | ||
- | </code> | ||