• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/businessvalue.php
  • Класс: BitrixSaleBusinessValue
  • Вызов: BusinessValue::changeConsumer
static function changeConsumer($consumerKey, array $consumer)
{
	if (! $consumerKey)
		throw new SystemException('Empty consumer key!');

	self::getConsumers(); // preload consumers

	if (! isset(self::$consumers[$consumerKey]))
		throw new SystemException('There is no consumer "'.$consumerKey.'" to change!');

	self::$consumers[$consumerKey] = $consumer;
}