Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User new: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
Cg_pham (talk | contribs)
No edit summary
Line 1: Line 1:
[[Category:User_Functions]]
[[Category:User_Functions]]

{{HelpFiles}}


====User_new====
====User_new====

Revision as of 07: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