Bitrix Site Manager

CSaleUserAccount::Update

int
CSaleUserAccount::Update(
 int ID,
 array arFields
);

The method Update replaces parameters of a user account with those from the specified array.

Parameters

ParameterDescription
ID The ID of the account to modify.
arFields Associated array containing new parameters of the 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 modified account on success, or false otherwise.