This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
stats:proc:changeattributes_exam [2011/09/28 23:49] 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 | + | } |
| </code> | </code> | ||