User Tools

Site Tools


stats:proc:createexercise

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

stats:proc:createexercise [2011/09/29 19:26]
Patrick Michel
stats:proc:createexercise [2013/07/10 12:41]
Line 1: Line 1:
-====== Create Exercise ====== 
- 
-<code xcend> 
-createExercise(ident uid, ident id, string lecture, string term) { 
-  assume exists //​accounts/​account[uid]/​admin;​ 
- 
-  assume not exists //​exercises/​exercise[id];​ 
-  ​ 
-  insert //exercises 
-    <​exercise id=[id] lecture=[lecture] term=[term] > 
-      <groups /> 
-      <sheets /> 
-      <​students /> 
-    </​exercise>;​ 
-} # roles: admin 
-</​code>​ 
  
stats/proc/createexercise.txt ยท Last modified: 2013/07/10 12:41 (external edit)