Task::copy

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Task
  4. copy
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/copy/templatechecklist.php
  • Класс: BitrixTasksCopyTemplateChecklist
  • Вызов: TemplateChecklist::copy
public function copy(ContainerCollection $containerCollection)
{
	foreach ($containerCollection as $container)
	{
		$checkListItems = $this->checkList->getCheckListItemsByEntityId($container->getEntityId());

		if ($this->checkList->hasErrors())
		{
			$this->result->addErrors($this->checkList->getErrors());
		}
		else
		{
			$this->checkList->add($container->getCopiedEntityId(), $this->executiveUserId, $checkListItems);
		}
	}

	return $this->result;
}

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