could::internalGetInitialBoundaries

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. could
  4. internalGetInitialBoundaries
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/processor/task/scheduler/relationmanager/subtask.php
  • Класс: BitrixTasksProcessorTaskSchedulerRelationManagercould
  • Вызов: could::internalGetInitialBoundaries
private function internalGetInitialBoundaries($id, $fragment)
{
	$min = null;
	$max = null;

	$impactData = $this->getScheduler()->getImpactById($id);
	$nodeData = $fragment->getNodeData($id);

	if(!static::isBracketTaskData($impactData) && !static::isBracketTaskData($nodeData))
	{
		$data = $nodeData;
		if($impactData)
		{
			$data = $impactData;
		}

		$min = (($data['START_DATE_PLAN'] ?? null) ? clone $data['START_DATE_PLAN'] : null);
		$max = (($data['END_DATE_PLAN'] ?? null) ? clone $data['END_DATE_PLAN'] : null);
	}

	return array(
		'MAX' => $max,
		'MIN' => $min
	);
}

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