User Tools

Site Tools


stats:proc:createstudentaccount

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:createstudentaccount [2011/09/29 19:41]
Patrick Michel
stats:proc:createstudentaccount [2013/07/10 12:40] (current)
Line 2: Line 2:
  
 <code xcend> <code xcend>
-createStudentAccount(ident username, ident studentId, string lastName, string firstName, string email, string password) { +createStudentAccount(ident username, ident studentId, string lastName, string firstName, string email, string password, string code) { 
-  assume not exists ​//accounts/​account[username];​ +  assume not exists /​account[username];​ 
-  assume count(studentId, ​//accounts/​account/​student/​id) = 0;+  assume count(studentId,​ /​account/​student/​id) = 0;
   ​   ​
-  insert //accounts +  insert / 
-    <account username=[username] lastName=[lastName] firstName=[firstName] email=[email] password=[password] >+    <account username=[username] lastName=[lastName] firstName=[firstName] email=[email] password=[password] code=[code]>
       <student id=[studentId] />       <student id=[studentId] />
     </​account>​     </​account>​
 } }
 </​code>​ </​code>​
stats/proc/createstudentaccount.1317318061.txt.gz · Last modified: 2011/09/29 19:41 by Patrick Michel