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

Both sides previous revision Previous revision
Next revision
Previous revision
stats:proc:changeattributes_exam [2011/09/29 00:22]
Patrick Michel
stats:proc:changeattributes_exam [2013/07/10 12:32] (current)
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; 
-# roles: admin, examiner[id]+}
 </​code>​ </​code>​
  
stats/proc/changeattributes_exam.1317248568.txt.gz · Last modified: 2011/09/29 00:22 by Patrick Michel