Bitrix Site Manager

CCurrencyRates::Update

bool
CCurrencyRates::Update(
 int ID, 
 array arFields
);

The method Update replaces the parameters of a record in the exchange rate table with the values of the arFields array.

Parameters

ParameterDescription
ID The record ID.
arFieldsAssociated array of new parameters of the currency rate in which keys are the parameter names and values are the parameter values.

The following keys are possible:
  • CURRENCY - the currency identifier;
  • DATE_RATE - the date for which the rate is set;
  • RATE_CNT - the number of currency units used to define the rate of exchange (for example, if CYP 10 equal to USD 21.58, 10 is the number of currency units);
  • RATE - the default rate of exchange. (One of currencies within a site must equal to 1. Such currency is called a base currency. Other currencies are defined relative to the base currency.)

Return Values

Returns true on success, or false otherwise.