TaskObject::getFileFields

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. TaskObject
  4. getFileFields
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/taskobject.php
  • Класс: BitrixTasksInternalsTaskObject
  • Вызов: TaskObject::getFileFields
public function getFileFields(): array
{
	//first of all, try to get crm data from loaded data
	$filesObject = $this->getUtsData() ?? UtsTasksTaskTable::getById($this->getId())->fetchObject();
	if (!is_null($filesObject))
	{
		$ufFiles = $filesObject->getUfTaskWebdavFiles();
		if (empty($ufFiles))
		{
			return [];
		}
		$ufFiles = unserialize($ufFiles, ['allow_classes' => false]);

		return is_array($ufFiles) ? $ufFiles : [];
	}

	return [];
}

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