• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/file.php
  • Класс: BitrixLandingFile
  • Вызов: File::getFiles
static function getFiles($entityId, $entityType)
{
	$files = [];
	$res = FileTable::getList(array(
		'select' => array(
			'FILE_ID'
		),
		'filter' => array(
			'ENTITY_ID' => $entityId,
			'=ENTITY_TYPE' => $entityType
		)
	));
	while ($row = $res->fetch())
	{
		$files[] = $row['FILE_ID'];
	}
	return $files;
}