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

	if (! is_array($consumer))
		throw new SystemException('Invalid consumer!');

	self::getConsumers(); // preload consumers
	self::addConsumerByRef($consumerKey, $consumer);
}