• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/subscribe.php
  • Класс: BitrixCatalogSubscribeTable
  • Вызов: SubscribeTable::sendRepeatedNotice
static function sendRepeatedNotice()
{
	if(static::checkLastUpdate())
		return 'BitrixCatalogSubscribeTable::sendRepeatedNotice();';

	list($listSubscribe, $totalCount) = static::getSubscriptionsData();

	if(empty($listSubscribe))
	{
		static::$agentRepeatedNoticeCreated = false;
		return '';
	}

	$anotherStep = (int)$totalCount['CNT'] > static::LIMIT_SEND;

	list($dataSendToNotice, $listNotifiedSubscribeId) =
		static::prepareDataForNotice($listSubscribe, 'CATALOG_PRODUCT_SUBSCRIBE_NOTIFY_REPEATED');

	static::startEventNotification($dataSendToNotice);

	if($listNotifiedSubscribeId)
		static::setNeedSending($listNotifiedSubscribeId);

	if($anotherStep)
	{
		return 'BitrixCatalogSubscribeTable::sendRepeatedNotice();';
	}
	else
	{
		static::$agentRepeatedNoticeCreated = false;
		return '';
	}
}