User Tools

Site Tools


stats:proc:createexam

This is an old revision of the document!


Create Exam

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] >
      <tasks />
      <grades />
      <results />
    </exam>;
}
stats/proc/createexam.1317317202.txt.gz · Last modified: 2011/09/29 19:26 by Patrick Michel