• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/util/cleanconnectionagent.php
  • Класс: BitrixCalendarSyncUtilCleanConnectionAgent
  • Вызов: CleanConnectionAgent::getDeletedUsersConnection
private function getDeletedUsersConnection(): array
{
	return DavConnectionTable::query()
		->setSelect(['ID', 'ACCOUNT_TYPE'])
		->registerRuntimeField(
			new ReferenceField(
				'USER',
				UserTable::class,
				['=this.ENTITY_ID' => 'ref.ID'],
				['join_type' => 'INNER']
			)
		)
		->where('USER.ACTIVE', 'N')
		->whereIn('ACCOUNT_TYPE', self::SYNC_CONNECTIONS)
		->exec()->fetchAll()
	;
}