• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/event/tools/excludeddatecomparemanager.php
  • Класс: Bitrix\Calendar\Core\Event\Tools\ExcludedDateCompareManager
  • Вызов: ExcludedDateCompareManager::compare
public function compare(): ExcludedDateCompareManager
{
	$this->diff = array_udiff(
		$this->currentCollection->getCollection(),
		$this->originalCollection->getCollection(),
		[$this, 'compareHandler']
	);

	if (
		$this->diff
		|| $this->originalCollection->count() !== $this->currentCollection->count()
	)
	{
		$this->isEqual = false;
	}

	return $this;
}