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

	$strSql = "SELECT * FROM b_calendar_push"
		. " WHERE ENTITY_TYPE = '" . $type . "' AND ENTITY_ID = " . $entityId . ";";
	$pushDb = $DB->Query($strSql);

	if ($push = $pushDb->Fetch())
	{
		return $push;
	}

	return null;
}