• Модуль: currency
  • Путь к файлу: ~/bitrix/modules/currency/lib/integration/iblockmoneyproperty.php
  • Класс: BitrixCurrencyIntegrationIblockMoneyProperty
  • Вызов: IblockMoneyProperty::getSeparatedValues
static function getSeparatedValues($value)
{
	$explode = is_string($value) ? explode(self::SEPARATOR, $value) : [];
	$currentValue = (isset($explode[0]) && $explode[0] !== '' ? $explode[0] : '');
	$currentCurrency = $explode[1] ?? '';
	$format = CCurrencyLang::GetFormatDescription($currentCurrency);
	$explode = explode($format['DEC_POINT'], $currentValue);
	$currentValue = ($explode[0] !==  '' ? $explode[0] : '');
	$decimalsValue = $explode[1] ?? '';
	return array(
		'AMOUNT' => $currentValue,
		'CURRENCY' => $currentCurrency,
		'DECIMALS' => $decimalsValue
	);
}