Bitrix Site Manager

CSaleUserAccount::Add

int
CSaleUserAccount::Add(
 array arFields
);

The method Add adds a new user account with the specified parameters.

Parameters

ParameterDescription
arFields Associated array containing parameters of the new account. The following keys are possible:
  • USER_ID - the user ID;
  • CURRENT_BUDGET - the current balance of the account;
  • CURRENCY - currency;
  • NOTES - the text description;
  • LOCKED - flag: the account is disabled;
  • DATE_LOCKED - the date the account was disabled.

Return Values

The method returns the ID of the added account on success, or false otherwise.