• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/internals/input.php
  • Класс: BitrixSaleInternalsInputBase
  • Вызов: Base::getViewHtml
static function getViewHtml(array $input, $value = null)
{
	if ($value === null && isset($input['VALUE']))
	{
		$value = $input['VALUE'];
	}

	if (isset($input['MULTIPLE']) && $input['MULTIPLE'] === 'Y')
	{
		$tag = isset($input['MULTITAG']) ? htmlspecialcharsbx($input['MULTITAG']) : static::MULTITAG;
		[$startTag, $endTag] = $tag ? array("<$tag>", "") : array('', '');

		$html = '';

		foreach (static::asMultiple($value) as $value)
			$html .= $startTag.static::getViewHtmlSingle($input, $value).$endTag;

		return $html;
	}
	else
	{
		return static::getViewHtmlSingle($input, static::asSingle($value));
	}
}