• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Entity/File/FilePopupItem.php
  • Класс: BitrixImV2EntityFileFilePopupItem
  • Вызов: FilePopupItem::__construct
public function __construct($files = null)
{
	if (!$files instanceof FileCollection)
	{
		$this->files = new FileCollection();
	}
	else
	{
		$this->files = $files;
	}

	if ($files instanceof FileItem)
	{
		if ($this->files->getById($files->getId()) === null)
		{
			$this->files[] = $files;
		}
	}
}