• Модуль: mobile
  • Путь к файлу: ~/bitrix/modules/mobile/lib/UI/File.php
  • Класс: BitrixMobileUIFile
  • Вызов: File::getInfo
public function getInfo(): array
{
	$info = [
		'id' => $this->getId(),
		'name' => $this->getName(),
		'type' => $this->getType(),
		'url' => $this->getUrl(),
		'height' => $this->getHeight(),
		'width' => $this->getWidth(),
	];

	if ($this->preview)
	{
		$info['previewUrl'] = $this->preview->getUrl();
		$info['previewHeight'] = $this->preview->getHeight();
		$info['previewWidth'] = $this->preview->getWidth();
	}

	return $info;
}