This shows you the differences between two versions of the page.
stats:proc:changeattributes_account [2011/10/12 15:55] Patrick Michel |
stats:proc:changeattributes_account [2013/07/10 12:32] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Change Attributes (Account) ====== | ||
- | <code xcend> | ||
- | # the current implementation also changes the username, i.e. it would need an additional parameter, I can't support it and I would forbid it anyway. | ||
- | changeAttributes(ident uid, ident username, string firstName, string lastName) { | ||
- | assume exists //accounts/account[uid]/admin || uid = username; | ||
- | |||
- | assume exists //accounts/account[username]; # implicitly true in OO implementations | ||
- | |||
- | update //accounts/account[username]/firstName firstName; | ||
- | update //accounts/account[username]/lastName lastName; | ||
- | } | ||
- | </code> |