TaskFieldHandler::isDatesChanged

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. TaskFieldHandler
  4. isDatesChanged
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/control/handler/taskfieldhandler.php
  • Класс: BitrixTasksControlHandlerTaskFieldHandler
  • Вызов: TaskFieldHandler::isDatesChanged
public function isDatesChanged(): bool
{
	if (!$this->taskData)
	{
		return false;
	}

	if (
		!array_key_exists('START_DATE_PLAN', $this->fields)
		&& !array_key_exists('END_DATE_PLAN', $this->fields)
	)
	{
		return false;
	}

	if ((string)$this->taskData['START_DATE_PLAN'] !== (string)$this->fields['START_DATE_PLAN'])
	{
		return true;
	}

	if ((string)$this->taskData['END_DATE_PLAN'] !== (string)$this->fields['END_DATE_PLAN'])
	{
		return true;
	}

	return false;
}

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