• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/replicator/template/taskproducer.php
  • Класс: BitrixTasksReplicatorTemplateTaskProducer
  • Вызов: TaskProducer::init
private function init(): void
{
	$template = $this->repository->getTemplate();

	$this->userId = is_null($template) ? 0 : $template->getCreatedByMemberId();
	$this->accessController = new TaskAccessController($this->userId);
	$this->templateHistoryService = new TemplateHistoryService($this->repository);
	$this->fields = (new TemplateParameter($this->repository))->getData();
	$this->replacePerHitUserId();
}