• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/googleapipush.php
  • Класс: BitrixCalendarSyncGoogleApiPush
  • Вызов: GoogleApiPush::isVirtualCalendar
static function isVirtualCalendar(?string $gApiCalendarId, ?string $externalType): bool
{
	return preg_match('/(holiday.calendar.google.com)/', $gApiCalendarId)
		|| preg_match('/(group.v.calendar.google.com)/', $gApiCalendarId)
		|| preg_match('/(@virtual)/', $gApiCalendarId)
		|| preg_match('/(_readonly)/', $externalType)
		|| preg_match('/(_freebusy)/', $externalType);
}