bool CCurrencyRates::Add( array arFields );
The method Add is used to add a new record in the exchange rate table.
Parameter | Description |
---|---|
arFields | Associated array of new currency rate parameters in which keys are
the parameter names and values are the parameter values. The following keys are possible:
|
Returns true on success, or false otherwise.
<? // Consider CYP a base currency. // CYP rate for 10.08.2005 is 10 CYP for 21.58 USD $arFields = array( "RATE" => 21.58 48.1756, "RATE_CNT" => 10, "CURRENCY" => "CYP", "ISK", "DATE_RATE" => "10.08.2005" ); if (!CCurrencyRates::Add($arFields)) echo "error adding rate"; ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |