Add
string CCurrency::Add( array arFields );
The Add method is used to add a new currency. After the new currency is added, its language dependent parameters are to be set using the CCurrencyLang::Add method.
Parameters
Parameter | Description |
---|---|
arFields | Associated array of the currency parameters in which keys are the
parameter names and values are the parameter values. The following parameter names are possible:
|
Return Values
The method returns the ID of the added currency on success, or false otherwise.
Example
<? // Add a new currency "ISK" $arFields = array( "CURRENCY" => "ISK", "AMOUNT" => 157.06, "AMOUNT_CNT" => 10000, "SORT" => 250 ); CCurrency::Add($arFields); ?>
© «Bitrix24», 2001-2024