Task::getText

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Task
  4. getText
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/copy/implement/task.php
  • Класс: BitrixTasksCopyImplementTask
  • Вызов: Task::getText
protected function getText($taskId, $format = self::DESC_FORMAT_RAW)
{
	try
	{
		$task = $this->getTaskItemObject($taskId);
		$description = $task->getDescription($format);

		return (is_string($description) ? ["DESCRIPTION", $description] : ["DESCRIPTION", ""]);
	}
	catch(Exception $exception)
	{
		return ["DESCRIPTION", ""];
	}
}

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