User Tools

Site Tools


stats:proc:changeattributes_exam

Differences

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

Link to this comparison view

Next revision
Previous revision
stats:proc:changeattributes_exam [2011/09/27 20:50] – created Patrick Michelstats:proc:changeattributes_exam [2013/07/10 12:32] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 <code xcend> <code xcend>
-changeAttributes(ident id, string title, string date, string time, string location) { +changeAttributes(ident uid, ident id, string title, string date, string time, string location) { 
-  assume exists //exams/exam[id]; # implicitly true in OO implementations+  assume exists /account[uid]/admin || exists /account[uid]/examiner[id]; 
 + 
 +  assume exists /exam[id]; # implicitly true in OO implementations
    
-  update //exams/exam[id]/title title; +  update /exam[id]/title title; 
-  update //exams/exam[id]/date date; +  update /exam[id]/date date; 
-  update //exams/exam[id]/time time; +  update /exam[id]/time time; 
-  update //exams/exam[id]/location location;+  update /exam[id]/location location;
 } }
 </code> </code>
  
stats/proc/changeattributes_exam.1317149431.txt.gz · Last modified: by Patrick Michel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki