User Tools

Site Tools


stats:proc:createstudentaccount

This is an old revision of the document!


Create Student Account

createStudentAccount(ident username, ident studentId, string lastName, string firstName, string email, string password, string code) {
  assume not exists //accounts/account[username];
  assume count(studentId, //accounts/account/student/id) = 0;
 
  insert //accounts
    <account username=[username] lastName=[lastName] firstName=[firstName] email=[email] password=[password] code=[code]>
      <student id=[studentId] />
    </account>
}
stats/proc/createstudentaccount.1318540370.txt.gz · Last modified: 2011/10/13 23:12 by Patrick Michel