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 revisionPrevious revision
Next revision
Previous revision
stats:proc:createstudentaccount [2011/09/29 19:41] – Patrick Michelstats:proc:createstudentaccount [2013/07/10 12:40] (current) – external edit 127.0.0.1
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: by Patrick Michel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki