• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/integration/manager/statistic.php
  • Класс: Bitrix\Sale\Exchange\Integration\Manager\Statistic
  • Вызов: Statistic::modify
public function modify()
{
	if($this->isOn())
	{
		$provider = $this->getProvider();
		if(is_null($provider))
		{
			return false;
		}

		$list = $this->getListByParams($provider)
			->getCollection()
			->toArray();

		if(count($list)>0)
		{
			return (new Statistics())
				->modify($list)
				->isSuccess();
		}
	}

	return true;
}