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] free=[false] published=[false] >
      <tasks />
      <grades />
      <results />
    </exam>;
}
stats/proc/createexam.1326289752.txt.gz · Last modified: 2012/01/11 14:49 by Patrick Michel