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
stats:proc:createstudentaccount [2011/10/13 23:12] – Patrick Michelstats:proc:createstudentaccount [2013/07/10 12:40] (current) – external edit 127.0.0.1
Line 3: Line 3:
 <code xcend> <code xcend>
 createStudentAccount(ident username, ident studentId, string lastName, string firstName, string email, string password, string code) { 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] code=[code]>     <account username=[username] lastName=[lastName] firstName=[firstName] email=[email] password=[password] code=[code]>
       <student id=[studentId] />       <student id=[studentId] />
stats/proc/createstudentaccount.1318540370.txt.gz · Last modified: by Patrick Michel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki