User new

From Catglobe Wiki
Revision as of 09:54, 7 March 2011 by 127.0.0.1 (talk | contribs) (jrfconvert import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



User_new

Create a new user object

Syntax

User_new(username, password, userTemplateResourceId)

Arguments

  • username: is a string expression. It is the user's username, it must follow the common format of usernames
  • password: is a string expression. It is the user's password, it must follow the common format for passwords
  • userTemplateResourceId: is a number expression. It is the user template's resource id

Return value

An array, it is a user object which contains the following items [USER_PHONE_NUMBER] = {{PhoneNumber_Type_Home1, "0703822745", 84}, {PhoneNumber_Type_Mobile1, "0903353758", 84}};</nowiki>

user[USER_LANGUAGE] = "en-GB";

user[USER_TIMEZONE] = Timezone_SE_Asia_Standard_Time;

User_save(user);

Availability

Version 5.6