• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/bizproctype/usertypeproperty.php
  • Класс: BitrixIblockBizprocTypeUserTypeProperty
  • Вызов: UserTypeProperty::renderControlSingle
static function renderControlSingle(FieldType $fieldType, array $field, $value, $allowSelection, $renderMode)
	{
		$selectorValue = null;
		if (CBPActivity::isExpression($value))
		{
			$selectorValue = $value;
			$value = null;
		}

		$userType = static::getUserType($fieldType);

		if (!empty($userType['GetPublicEditHTML']))
		{
			if (is_array($value) && isset($value['VALUE']))
				$value = $value['VALUE'];

			$renderResult = call_user_func_array(
				$userType['GetPublicEditHTML'],
				[
					[
						'LINK_IBLOCK_ID' => $fieldType->getOptions(),
						'FORMAT_NAME' =>
							BitrixMainApplication::getInstance()
								->getContext()
								->getCulture()
								->getNameFormat()
						,
					],
					['VALUE' => $value],
					[
						'FORM_NAME' => $field['Form'],
						'VALUE' => static::generateControlName($field)
					],
					true
				]
			);
		}
		else
			$renderResult = static::renderControl($fieldType, $field, $value, $allowSelection, $renderMode);

		if ($allowSelection)
		{
			$renderResult .= static::renderControlSelector($field, $selectorValue, true, '', $fieldType);
		}

		return $renderResult;
	}