CCrmCurrencyRestProxy::deleteLocalizations

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmCurrencyRestProxy
  4. deleteLocalizations
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmCurrencyRestProxy
  • Вызов: CCrmCurrencyRestProxy::deleteLocalizations
public function deleteLocalizations($ID, $langs)
{
	$ID = strval($ID);
	if($ID === '')
	{
		throw new RestException('The parameter id is invalid or not defined.');
	}

	if(!is_array($langs) || empty($langs))
	{
		return false;
	}

	if(!CCrmCurrency::CheckUpdatePermission($ID))
	{
		throw new RestException('Access denied.');
	}

	return CCrmCurrency::DeleteCurrencyLocalizations($ID, $langs);
}

Добавить комментарий