• Модуль: highloadblock
  • Путь к файлу: ~/bitrix/modules/highloadblock/classes/general/prop_directory.php
  • Класс: CIBlockPropertyDirectory
  • Вызов: CIBlockPropertyDirectory::GetAdminFilterHTML
static function GetAdminFilterHTML($arProperty, $strHTMLControlName): string
{
	$lAdmin = new CAdminList($strHTMLControlName["TABLE_ID"]);
	$lAdmin->InitFilter(array($strHTMLControlName["VALUE"]));
	$filterValue = $GLOBALS[$strHTMLControlName["VALUE"]];

	if(isset($filterValue) && is_array($filterValue))
		$values = $filterValue;
	else
		$values = array();

	$settings = CIBlockPropertyDirectory::PrepareSettings($arProperty);
	$size = ($settings["size"] > 1 ? ' size="'.$settings["size"].'"' : '');
	$width = ($settings["width"] > 0 ? ' style="width:'.$settings["width"].'px"' : '');

	$options = CIBlockPropertyDirectory::GetOptionsHtml($arProperty, $values);
	$html = '';
	return  $html;
}