ExcludedDateCompareManager::compare

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. ExcludedDateCompareManager
  4. compare
  • Модуль: 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;
}

Добавить комментарий