Update
bool CCurrencyRates::Update( int ID, array arFields );
This method replaces the parameters of a record in the exchange rate table with the values of the arFields array. Prior to updating, a verification of availability of this currency with other ID is performed. If such currency exists - an error will occur. Static method.
In case of successful update, resets currency_rate cache and currency_id tagged cache.Parameters
Parameter | Description |
---|---|
ID | The record ID. |
arFields | Associative 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:
|
Return Values
Returns the ID of the modified currency rate on success, or false otherwise. Error text is returned via $APPLICATION->GetException().
© «Bitrix24», 2001-2024