TaskManager::startCopy

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. TaskManager
  4. startCopy
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/copy/taskmanager.php
  • Класс: BitrixTasksCopyTaskManager
  • Вызов: TaskManager::startCopy
public function startCopy()
{
	$containerCollection = $this->getContainerCollection($this->taskIdsToCopy);

	$taskImplementer = $this->getTaskImplementer();
	$taskCopier = $this->getTaskCopier($taskImplementer);

	$taskCopier->addEntityToCopy($this->getStageCopier($taskImplementer));

	if ($this->markerChecklist)
	{
		$checklistImplementer = $this->getChecklistImplementer();
		$taskCopier->addEntityToCopy($this->getChecklistCopier($checklistImplementer));
	}

	$this->result = $taskCopier->copy($containerCollection);
	$this->mapIdsCopiedTasks = $taskCopier->getMapIdsCopiedEntity();

	return $this->result;
}

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