• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/activity/propertiesdialog.php
  • Класс: BitrixBizprocActivityPropertiesDialog
  • Вызов: PropertiesDialog::renderFieldControl
public function renderFieldControl($field, $value = null, $allowSelection = true, $renderMode = FieldType::RENDER_MODE_PUBLIC)
{
	if (is_string($field))
	{
		$field = $this->getMap()[$field];
	}

	$fieldType = $field ? $this->getFieldTypeObject($field) : null;

	if (!$fieldType)
	{
		return 'incorrect field type';
	}

	if ($value === null)
	{
		$value = $this->getCurrentValue($field, $field['Default'] ?? null);
	}

	return $fieldType->renderControl(
		['Form' => $this->getFormName(), 'Field' => $field['FieldName']],
		$value,
		$allowSelection,
		$renderMode
	);
}