Поддержка серверов

CURRENCY: методы, функции, константы класса Битрикс


Блог разработчика

9 августа 2016 ResizeImageGet и простой водяной знак налету

Сегодня поговорим о том как проще всего воткнуть водяной знак на картинки в Битрикс. Например, на все изображения каталога.

21 июля 2016 Добавление вкладки в CRM коробки Битрикс24

В этом посте я покажу, как легко и просто добавить вкладку в сущность CRM. И не просто добавить, а вывести там свой контент.

21 июля 2016 Как просто обращаться из коробки Битрикс24 на сайт на базе Битрикс

К примеру вам хочется внутренним скриптом дернуть с сайта-магазина информацию, которая там, в свою очередь, закрыта некоторыми правами. Например, админскими. Можно конечно мутить свой REST, или иной формат общения, но проще всего воспользоваться штатным инструментом:

События модуля currency

СобытиеВызывается
OnBeforeCurrencyRateAddCCurrencyRates::Add
OnCurrencyRateAddCCurrencyRates::Add
OnBeforeCurrencyRateUpdateCCurrencyRates::Update
OnCurrencyRateUpdateCCurrencyRates::Update
OnBeforeCurrencyRateDeleteCCurrencyRates::Delete
OnCurrencyRateDeleteCCurrencyRates::Delete
OnBeforeCurrencyAddCCurrency::Add
OnCurrencyAddCCurrency::Add
OnBeforeCurrencyUpdateCCurrency::Update
OnCurrencyUpdateCCurrency::Update
OnBeforeCurrencyDeleteCCurrency::Delete
OnCurrencyDeleteCCurrency::Delete
CurrencyFormatCCurrencyLang::CurrencyFormat

Константы модуля currency

КонстантаПроверяется
CURRENCY_SKIP_CACHECurrencyManager::getBaseCurrency
CURRENCY_CACHE_TIMECurrencyManager::getCurrencyList
ADMIN_SECTIONCCurrencyLang::GetFormatDescription
BX_COMP_MANAGED_CACHECurrencyManager::clearTagCache

Список функций и методов модуля currency

Метод
CurrencyFormat($price, $currency)
CurrencyFormatNumber($price, $currency)
CCurrencyRates::CheckFields($ACTION, &$arFields, $ID = 0)
CCurrencyRates::Add($arFields)
CCurrencyRates::Update($ID, $arFields)
CCurrencyRates::Delete($ID)
CCurrencyRates::GetByID($ID)
CCurrencyRates::GetList(&$by, &$order, $arFilter=array())
CCurrencyRates::ConvertCurrency($valSum, $curFrom, $curTo, $valDate = "")
CCurrencyRates::GetConvertFactor($curFrom, $curTo, $valDate = "")
CCurrencyRates::GetConvertFactorEx($curFrom, $curTo, $valDate = "")
CCurrencyRates::_get_last_rates($valDate, $cur)
CCurrency::GetCurrency($currency)
CCurrency::CheckFields($ACTION, &$arFields, $strCurrencyID = false)
CCurrency::Add($arFields)
CCurrency::Update($currency, $arFields)
CCurrency::Delete($currency)
CCurrency::GetByID($currency)
CCurrency::GetBaseCurrency()
CCurrency::SetBaseCurrency($currency)
CCurrency::SelectBox($sFieldName, $sValue, $sDefaultValue = '', $bFullName = true, $JavaFunc = '', $sAdditionalParams = '')
CCurrency::GetList(&$by, &$order, $lang = LANGUAGE_ID)
CCurrency::__GetList(&$by, &$order, $lang = LANGUAGE_ID)
CCurrency::isUserExists()
CCurrency::getInstalledCurrencies()
CCurrency::clearCurrencyCache()
CCurrency::clearTagCache($currency)
CCurrency::checkCurrencyID($currency)
CCurrency::updateCurrencyBaseRate($currency)
CCurrency::updateAllCurrencyBaseRate()
CCurrency::initCurrencyBaseRateAgent()
CCurrency::updateBaseCurrency($currency)
CCurrency::updateBaseRates($currency = '', $updateCurrency = '')
CCurrency::clearFields($value)
CCurrencyLang::enableUseHideZero()
CCurrencyLang::disableUseHideZero()
CCurrencyLang::isAllowUseHideZero()
CCurrencyLang::checkFields($action, &$fields, $currency = '', $language = '', $getErrors = false)
CCurrencyLang::Add($arFields)
CCurrencyLang::Update($currency, $lang, $arFields)
CCurrencyLang::Delete($currency, $lang)
CCurrencyLang::GetByID($currency, $lang)
CCurrencyLang::GetCurrencyFormat($currency, $lang = LANGUAGE_ID)
CCurrencyLang::GetList(&$by, &$order, $currency = "")
CCurrencyLang::GetDefaultValues()
CCurrencyLang::GetSeparators()
CCurrencyLang::GetSeparatorTypes($boolFull = false)
CCurrencyLang::GetFormatTemplates()
CCurrencyLang::GetFormatDescription($currency)
CCurrencyLang::CurrencyFormat($price, $currency, $useTemplate = true)
CCurrencyLang::checkLanguage($language)
CCurrencyLang::isExistCurrencyLanguage($currency, $language)
CCurrencyLang::clearFields($value)
RoundEdit::getPresetRoundValues($dropdownList = false)
RoundEdit::prepareFields(array &$fields)
Tools::getCurrencyLinkList()
CurrencyLangTable::getTableName()
CurrencyLangTable::getMap()
CurrencyLangTable::validateCurrency()
CurrencyLangTable::validateLid()
CurrencyLangTable::validateFormatString()
CurrencyLangTable::validateFullName()
CurrencyLangTable::validateDecPoint()
CurrencyLangTable::validateThousandsSep()
CurrencyLangTable::validateThousandsVariant()
IblockMoneyProperty::getUserTypeDescription()
IblockMoneyProperty::getPublicEditHTML($property, $value, $controlSettings)
IblockMoneyProperty::getPublicViewHTML($property, $value, $controlSettings)
IblockMoneyProperty::getPropertyFieldHtml($property, $value, $controlSettings)
IblockMoneyProperty::getAdminListViewHTML($property, $value, $controlSettings)
IblockMoneyProperty::checkFields($property, $value)
IblockMoneyProperty::getLength($property, $value)
IblockMoneyProperty::convertToDB($property, $value)
IblockMoneyProperty::convertFromDB($property, $value)
IblockMoneyProperty::addFilterFields($property, $controlSettings, &$filter, &$filtered)
IblockMoneyProperty::getListCurrency()
IblockMoneyProperty::getJsHandlerSelector($randString, array $listCurrency)
CurrencyTable::getTableName()
CurrencyTable::getMap()
CurrencyTable::validateCurrency()
CurrencyTable::validateNumcode()
CurrencyTable::currencyBaseRateAgent()
CurrencyRateTable::getTableName()
CurrencyRateTable::getMap()
CurrencyRateTable::validateCurrency()
CurrencyManager::checkCurrencyID($currency)
CurrencyManager::checkLanguage($language)
CurrencyManager::getBaseCurrency()
CurrencyManager::getCurrencyList()
CurrencyManager::isCurrencyExist($currency)
CurrencyManager::getInstalledCurrencies()
CurrencyManager::clearCurrencyCache($language = '')
CurrencyManager::clearTagCache($currency)
CurrencyManager::currencyBaseRateAgent()
CurrencyManager::updateBaseRates($updateCurrency = '')
CurrencyManager::updateBaseCurrency($currency)
Tools::getDatetimeExpressionTemplate()
currency::currency()
currency::DoInstall()
currency::DoUninstall()
currency::InstallDB()
currency::UnInstallDB($arParams = array())
currency::InstallEvents()
currency::UnInstallEvents()
currency::InstallFiles()
currency::UnInstallFiles()
currency::installCurrencies()