Difference between revisions of "User new"

From Catglobe Wiki
Jump to: navigation, search
(User_new)
(Tag: visualeditor)
Line 24: Line 24:
 
An ''array'', it is a user object which contains the following items  
 
An ''array'', it is a user object which contains the following items  
  
{| width="875" class="tableintopic" style="border: 1px solid rgb(1, 1, 1); border-collapse: collapse;" border="1" cellspacing="0" cellpadding="2"
+
{| class="tableintopic" style="border: 1px solid rgb(1, 1, 1); border-collapse: collapse;" width="875" cellspacing="0" cellpadding="2" border="1"
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" bgcolor="#c0c0c0" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" bgcolor="#c0c0c0" |  
 
'''Index'''
 
'''Index'''
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" bgcolor="#c0c0c0" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" bgcolor="#c0c0c0" |  
 
'''Data type'''
 
'''Data type'''
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" bgcolor="#c0c0c0" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" bgcolor="#c0c0c0" |  
 
'''Value'''
 
'''Value'''
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_RESOURCE_ID</span>
 
<span class="normalise">USER_RESOURCE_ID</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">number</span>
 
<span class="normalise">number</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Resource id</span>
 
<span class="normalise">Resource id</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_NAME</span>
 
<span class="normalise">USER_NAME</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Username</span>
 
<span class="normalise">Username</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_TEMPLATE_RESOURCE_ID</span>
 
<span class="normalise">USER_TEMPLATE_RESOURCE_ID</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">number</span>
 
<span class="normalise">number</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">User template's resource id</span>
 
<span class="normalise">User template's resource id</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_PASSWORD</span>
 
<span class="normalise">USER_PASSWORD</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
<span class="normalise">Password</span>
+
<span class="normalise">Password. when get password, will return empty string</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_TIME_REGISTRATION</span>
 
<span class="normalise">USER_TIME_REGISTRATION</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">bool</span>
 
<span class="normalise">bool</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">If time registration is allowed</span>
 
<span class="normalise">If time registration is allowed</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_MAN_HOURS</span>
 
<span class="normalise">USER_MAN_HOURS</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">number</span>
 
<span class="normalise">number</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Number of budget hours</span>
 
<span class="normalise">Number of budget hours</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_CALCULATED_MAN_HOURS</span>
 
<span class="normalise">USER_CALCULATED_MAN_HOURS</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">bool</span>
 
<span class="normalise">bool</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">If number of budget hours is calculated on Team tab's settings</span>
 
<span class="normalise">If number of budget hours is calculated on Team tab's settings</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_PHONE_NUMBER</span>
 
<span class="normalise">USER_PHONE_NUMBER</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">array</span>
 
<span class="normalise">array</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Phone number list</span>
 
<span class="normalise">Phone number list</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_ACCESS_EXPIRATION</span>
 
<span class="normalise">USER_ACCESS_EXPIRATION</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">aray</span>
 
<span class="normalise">aray</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Expiration date</span>
 
<span class="normalise">Expiration date</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_PROTECTED_UNTIL</span>
 
<span class="normalise">USER_PROTECTED_UNTIL</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">array</span>
 
<span class="normalise">array</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Protection deadline</span>
 
<span class="normalise">Protection deadline</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_LANGUAGE</span>
 
<span class="normalise">USER_LANGUAGE</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Language's ISO code</span>
 
<span class="normalise">Language's ISO code</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_CULTURE</span>
 
<span class="normalise">USER_CULTURE</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Culture's ISO code</span>
 
<span class="normalise">Culture's ISO code</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_EMAIL</span>
 
<span class="normalise">USER_EMAIL</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Email address</span>
 
<span class="normalise">Email address</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_FIRST_NAME</span>
 
<span class="normalise">USER_FIRST_NAME</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">First name</span>
 
<span class="normalise">First name</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_MIDDLE_NAME</span>
 
<span class="normalise">USER_MIDDLE_NAME</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Middle name</span>
 
<span class="normalise">Middle name</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_LAST_NAME</span>
 
<span class="normalise">USER_LAST_NAME</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Last name</span>
 
<span class="normalise">Last name</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_CURRENCY</span>
 
<span class="normalise">USER_CURRENCY</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Currency</span>
 
<span class="normalise">Currency</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_DISCOUNT</span>
 
<span class="normalise">USER_DISCOUNT</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Discount</span>
 
<span class="normalise">Discount</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_POINT_BALANCE</span>
 
<span class="normalise">USER_POINT_BALANCE</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">number</span>
 
<span class="normalise">number</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Point balance (read-only)</span>
 
<span class="normalise">Point balance (read-only)</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_TIMEZONE</span>
 
<span class="normalise">USER_TIMEZONE</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">number</span>
 
<span class="normalise">number</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Timezone</span>
 
<span class="normalise">Timezone</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_ADDRESS</span>
 
<span class="normalise">USER_ADDRESS</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Address</span>
 
<span class="normalise">Address</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_CITY</span>
 
<span class="normalise">USER_CITY</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">City</span>
 
<span class="normalise">City</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_ZIPCODE</span>
 
<span class="normalise">USER_ZIPCODE</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Zip code</span>
 
<span class="normalise">Zip code</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_REGION</span>
 
<span class="normalise">USER_REGION</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Region</span>
 
<span class="normalise">Region</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_COUNTRY</span>
 
<span class="normalise">USER_COUNTRY</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Country's ISO code</span>
 
<span class="normalise">Country's ISO code</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_POSTBOX</span>
 
<span class="normalise">USER_POSTBOX</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Postbox</span>
 
<span class="normalise">Postbox</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_WEBSITE</span>
 
<span class="normalise">USER_WEBSITE</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">string</span>
 
<span class="normalise">string</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">Website</span>
 
<span class="normalise">Website</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_DELETED</span>
 
<span class="normalise">USER_DELETED</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">bool</span>
 
<span class="normalise">bool</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">If the user is deleted</span>
 
<span class="normalise">If the user is deleted</span>
  
|- align="left" valign="top"
+
|- valign="top" align="left"
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="292" |  
 
<span class="normalise">USER_DISABLED</span>
 
<span class="normalise">USER_DISABLED</span>
  
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="116" |  
 
<span class="normalise">bool</span>
 
<span class="normalise">bool</span>
  
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
+
| style="border: 1px solid rgb(1, 1, 1);" width="467" |  
 
<span class="normalise">If the user is disabled</span>
 
<span class="normalise">If the user is disabled</span>
  
 
|}
 
|}
 
  
 
'''Example'''
 
'''Example'''
Line 358: Line 357:
 
'''Availability'''  
 
'''Availability'''  
  
Version 5.6 __NOTOC__
+
Version 5.6  
 +
 
 +
__FORCETOC__
  
 
[[Category:User_Functions]]
 
[[Category:User_Functions]]

Revision as of 11:17, 22 June 2018



Contents

User_new

Create a new user object

Syntax

User_new(username, password, userTemplateResourceId)

or

array User_new(userTemplateResourceId[, userNameMass])

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
  • userNameMass: is a string expression. It is name which user want to include (optional)

Return value

An array, it is a user object which contains the following items

Index

Data type

Value

USER_RESOURCE_ID

number

Resource id

USER_NAME

string

Username

USER_TEMPLATE_RESOURCE_ID

number

User template's resource id

USER_PASSWORD

string

Password. when get password, will return empty string

USER_TIME_REGISTRATION

bool

If time registration is allowed

USER_MAN_HOURS

number

Number of budget hours

USER_CALCULATED_MAN_HOURS

bool

If number of budget hours is calculated on Team tab's settings

USER_PHONE_NUMBER

array

Phone number list

USER_ACCESS_EXPIRATION

aray

Expiration date

USER_PROTECTED_UNTIL

array

Protection deadline

USER_LANGUAGE

string

Language's ISO code

USER_CULTURE

string

Culture's ISO code

USER_EMAIL

string

Email address

USER_FIRST_NAME

string

First name

USER_MIDDLE_NAME

string

Middle name

USER_LAST_NAME

string

Last name

USER_CURRENCY

string

Currency

USER_DISCOUNT

string

Discount

USER_POINT_BALANCE

number

Point balance (read-only)

USER_TIMEZONE

number

Timezone

USER_ADDRESS

string

Address

USER_CITY

string

City

USER_ZIPCODE

string

Zip code

USER_REGION

string

Region

USER_COUNTRY

string

Country's ISO code

USER_POSTBOX

string

Postbox

USER_WEBSITE

string

Website

USER_DELETED

bool

If the user is deleted

USER_DISABLED

bool

If the user is disabled

Example

  • Example for User_new(username, password, userTemplateResourceId)

array userinfo = User_new("phonghh1111","123456",15070738);

print(userinfo);

//Output : {5,0,phonghh1111,15070738,123456,False,0,False,{},{1,1,1,0,0,0,0,1,0},{1,1,1,0,0,0,0,1,0},en-US,en-GB,,,,,,,0,0,,,,,,,,False,False,}

  • Example for User_new(userTemplateResourceId[, userNameMass])

number userTemplateResourceId=33673945;

string userNameMass="ABC_{0}_XYZ";

array user= User_new(userTemplateResourceId,userNameMass);

User_save(user);

print(user);

// Output:

{5,37284223,ABC_38394667_XYZ,33673945,Al8fqEs1,False,0,False,{},{1,1,1,0,0,0,0,1,0},{1,1,1,0,0,0,0,1,0},en-GB,en-GB,,,,,DKK,,0,0,,,,,,,,False,False,ABC_{0}_XYZ,104371}


Availability

Version 5.6