ToTask::transformData

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. ToTask
  4. transformData
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/item/converter/task/checklist/totask.php
  • Класс: Bitrix\Tasks\Item\Converter\Task\CheckList\ToTask
  • Вызов: ToTask::transformData
protected function transformData(array $data, $srcInstance, $dstInstance, $result)
{
	$task = $srcInstance->getParent();

	// transforming the checklist item into a sub-task, just for fun
	return array(
		'TITLE' => $data['TITLE'],
		'RESPONSIBLE_ID' => $task['RESPONSIBLE_ID'],
		'CREATED_BY' => $data['CREATED_BY'],
		'PARENT_ID' => $data['TASK_ID'],
	);
}

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