• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/copy/stage.php
  • Класс: BitrixTasksCopyStage
  • Вызов: Stage::copy
public function copy(ContainerCollection $containerCollection)
{
	$result = [$this->implementerName => []];

	foreach ($containerCollection as $container)
	{
		$taskId = $container->getEntityId();
		$copiedTaskId = $container->getCopiedEntityId();

		$stageIds = $this->implementer->getStageIds($taskId);
		$result[$this->implementerName] += $this->implementer->addStages($copiedTaskId, $stageIds);

		$this->implementer->updateTaskStageId($container, $taskId, $copiedTaskId);
	}

	$this->result->setData($result);

	return $this->result;
}