User Tools

Site Tools


stats:proc:addstudentid

Differences

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

Link to this comparison view

stats:proc:addstudentid [2011/09/29 19:33]
Patrick Michel
stats:proc:addstudentid [2013/07/10 12:32]
Line 1: Line 1:
-====== Add Student ID ====== 
  
-<code xcend> 
-addStudentId(ident uid, ident username, string id) { 
-  assume exists //​accounts/​account[uid]/​admin;​ 
- 
-  assume exists //​accounts/​account[username];​ # implicitly true in OO implementations 
-  assume not exists //​accounts/​account[username]/​student;​ 
-  assume count(id, //​accounts/​account/​student/​id) = 0; 
-  
-  insert //​accounts/​account[username] <student id=[id] />; 
-} 
-</​code>​ 
stats/proc/addstudentid.txt ยท Last modified: 2013/07/10 12:32 (external edit)