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 revisionPrevious revision
stats:proc:createexam [2013/04/19 11:39] – Patrick Michelstats:proc:createexam [2013/07/10 12:42] (current) – external edit 127.0.0.1
Line 3: Line 3:
 <code xcend> <code xcend>
 createExam(ident uid, ident id, ident eid, string title, string date, string time, string location) { createExam(ident uid, ident id, ident eid, string title, string date, string time, string location) {
-  assume exists //accounts/account[uid]/admin;+  assume exists /account[uid]/admin;
  
-  assume not exists //exams/exam[id]; +  assume not exists /exam[id]; 
-  assume exists //exercises/exercise[eid];+  assume exists /exercise[eid];
      
-  insert //exams +  insert / 
-    <exam id=[id] title=[title] date=[date] time=[time] location=[location] free=[false] published=[false] exercise=[eid] > +    <exam id=[id] title=[title] date=[date] time=[time] location=[location] free=[false] published=[false] exercise=[eid] />
-      <tasks /> +
-      <grades /> +
-      <results /> +
-    </exam>;+
 } }
 </code> </code>
  
stats/proc/createexam.1366364357.txt.gz · Last modified: by Patrick Michel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki