User Tools

Site Tools


stats:proc:createexam

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
stats:proc:createexam [2011/09/28 23:49]
Patrick Michel
stats:proc:createexam [2012/01/11 14:49]
Patrick Michel
Line 2: Line 2:
  
 <code xcend> <code xcend>
-createExam(ident id, string title, string date, string time, string location) {+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];​   assume not exists //​exams/​exam[id];​
   ​   ​
-  insert //exams <exam id=[id] title=[title] date=[date] time=[time] location=[location] />; +  insert //exams 
-# roles: admin+    ​<exam id=[id] title=[title] date=[date] time=[time] location=[location] ​free=[false] published=[false] > 
 +      <​tasks ​/
 +      <grades /> 
 +      <results /> 
 +    </exam>; 
 +}
 </​code>​ </​code>​
  
stats/proc/createexam.txt · Last modified: 2013/07/10 12:42 (external edit)