• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/component/baseufcomponent.php
  • Класс: BitrixMainComponentBaseUfComponent
  • Вызов: BaseUfComponent::getMediaTypes
protected function getMediaTypes(): array
{
	$reflection = new ReflectionClass(__CLASS__);
	$constants = $reflection->getConstants();
	$result = [];
	foreach($constants as $name => $value)
	{
		if(mb_strpos($name, 'MEDIA_TYPE_') === 0)
		{
			$result[$name] = $value;
		}
	}
	return $result;
}