• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/task/result/result.php
  • Класс: BitrixTasksInternalsTaskResultResult
  • Вызов: Result::toArray
public function toArray(bool $fullInfo = true): array
{
	$arr = [
		'id' => $this->getId(),
		'taskId' => $this->getTaskId(),
		'commentId' => $this->getCommentId(),
		'createdBy' => $this->getCreatedBy(),
		'createdAt' => $this->getCreatedAt(),
		'updatedAt' => $this->getUpdatedAt(),
		'status' => $this->getStatus(),
	];

	if ($fullInfo)
	{
		$arr['text'] = $this->getText();
		$arr['formattedText'] = $this->getFormattedText();
		$arr['files'] = $this->get(ResultTable::UF_FILE_NAME);
	}

	return $arr;
}