• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/googleapipush.php
  • Класс: BitrixCalendarSyncGoogleApiPush
  • Вызов: GoogleApiPush::setBlockPush
static function setBlockPush(string $type, int $entityId): void
{
	global $DB;
	$push = self::getPush($type,$entityId);
	if (
		$push
		&& isset($push['NOT_PROCESSED'])
		&& !in_array($push['NOT_PROCESSED'], GoogleDictionary::PUSH_STATUS_PROCESS, true)
	)
	{
		$strSql = "UPDATE b_calendar_push"
			. " SET NOT_PROCESSED = '" . GoogleDictionary::PUSH_STATUS_PROCESS['block'] . "'"
			. " WHERE ENTITY_TYPE = '" . $type . "' AND ENTITY_ID = " . $entityId . ";";
		$DB->Query($strSql);
	}
}