• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/classes/general/taskitem.php
  • Класс: CTaskItem
  • Вызов: CTaskItem::getAttachmentIds
public function getAttachmentIds()
{
	// ensure we have access to the task
	$this->checkCanReadThrowException();

	if ($this->arTaskFileAttachments === null)
	{
		[$items, $res] = static::fetchList($this->executiveUserId, array(), array('ID' => $this->taskId), array(), array('ID', 'UF_TASK_WEBDAV_FILES'));

		$this->arTaskFileAttachments = array();
		if(isset($items[0]))
		{
			$data = $items[0]->getData();
			if(is_array($data['UF_TASK_WEBDAV_FILES']))
			{
				$this->arTaskFileAttachments = $data['UF_TASK_WEBDAV_FILES'];
			}
		}
	}

	return ($this->arTaskFileAttachments);
}