• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/subscribe.php
  • Класс: BitrixCatalogSubscribeTable
  • Вызов: SubscribeTable::setNeedSending
static function setNeedSending(array $listSubscribeId, $needSending = 'N')
{
	if(empty($listSubscribeId))
		return;

	$connection = Application::getConnection();
	$helper = $connection->getSqlHelper();
	$connection->queryExecute('update '.$helper->quote(static::getTableName()).' set '
		.$helper->quote('NEED_SENDING').' = ''.$needSending.'' where '
		.$helper->quote('ID').' in ('.implode(',', $listSubscribeId).')'
	);
}