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

	if ($this->arTaskFiles === null)
	{
		$rsFiles = CTaskFiles::GetList(
			array(),
			array('TASK_ID' => $this->taskId)
		);

		$this->arTaskFiles = array();

		while ($arFile = $rsFiles->fetch())
			$this->arTaskFiles[] = $arFile['FILE_ID'];
	}

	return ($this->arTaskFiles);
}