Difference between revisions of "User new"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
 
[[Category:User_Functions]]
 
[[Category:User_Functions]]

+
{{HelpFiles}}
  
 
====User_new====
 
====User_new====

Revision as of 09:01, 14 December 2011



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