Update
bool CCurrency::Update( string currency, array arFields );
The Update method replaces parameters of the currency with those specified in the arFields array. Language-dependent parameters (name, format and other) are updated separately, via the CCurrencyLang class. Non-static method.
Refreshes cache of currency_currency_list and currency_base_currency in case of a successful update (only if the database received a request). Also, a tagged cache currency_id_CURRENCY_CODE is refreshed as well.
Method parameters
Parameter | Description |
---|---|
currency | The ID of the currency which parameters are to be modified. |
arFields | Array of the new currency parameters.
If there no fields in the array, then there are no requests to the database, but the currency code will be returned. |
Returned values
ID of the currency whose parameters have been modified on success, or false otherwise (text is received via $APPLICATION->GetException()
).
© «Bitrix24», 2001-2024