• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Link/File/FileCollection.php
  • Класс: BitrixImV2LinkFileFileCollection
  • Вызов: FileCollection::fillFiles
public function fillFiles(): FileCollection
{
	$diskFilesIds = $this->getEntityIds();

	$entities = BitrixImV2EntityFileFileCollection::initByDiskFilesIds($diskFilesIds);

	foreach ($this as $file)
	{
		if ($entities->getById($file->getEntityId()) !== null)
		{
			$file->setEntity($entities->getById($file->getEntityId()));
		}
	}

	return $this;
}