EventHandler::getChanges

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. EventHandler
  4. getChanges
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/project/event/eventhandler.php
  • Класс: BitrixTasksInternalsProjectEventEventHandler
  • Вызов: EventHandler::getChanges
private function getChanges(array $oldFields, array $newFields): array
{
	$changes = [];

	foreach ($newFields as $key => $value)
	{
		if (mb_strpos($key, '~') === 0)
		{
			continue;
		}
		if (array_key_exists($key, $oldFields) && $oldFields[$key] !== $value)
		{
			$changes[$key] = $value;
		}
	}

	return $changes;
}

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