• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/googleapipush.php
  • Класс: BitrixCalendarSyncGoogleApiPush
  • Вызов: GoogleApiPush::setUnprocessedPush
static function setUnprocessedPush(string $type, int $entityId): void
{
	global $DB;

	$push = self::getPush($type, $entityId);
	if (
		$push
		&& isset($push['NOT_PROCESSED'])
		&& $push['NOT_PROCESSED'] !== GoogleDictionary::PUSH_STATUS_PROCESS['unprocessed']
	)
	{
		$strSql = "UPDATE b_calendar_push"
			. " SET NOT_PROCESSED = '" . GoogleDictionary::PUSH_STATUS_PROCESS['unprocessed'] ."'"
			. " WHERE ENTITY_TYPE = '" . $type . "' AND ENTITY_ID = " . $entityId . ";";
		$DB->Query($strSql);
	}
}