• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/basetype/file.php
  • Класс: BitrixBizprocBaseTypeFile
  • Вызов: File::renderControl
static function renderControl(FieldType $fieldType, array $field, $value, $allowSelection, $renderMode)
{
	if ($renderMode & FieldType::RENDER_MODE_DESIGNER)
	{
		return '';
	}

	$classNameHtml = htmlspecialcharsbx(static::generateControlClassName($fieldType, $field));
	$idHtml = htmlspecialcharsbx(static::generateControlId($field));
	$nameHtml = htmlspecialcharsbx(static::generateControlName($field));

	if ($renderMode & FieldType::RENDER_MODE_PUBLIC)
	{
		$msg = htmlspecialcharsbx(Loc::getMessage('BPDT_FILE_CHOOSE_FILE'));
		$onchange = 'this.nextSibling.textContent = BX.Bizproc.FieldType.File.parseLabel(this.value);';
		$onchange = htmlspecialcharsbx($onchange);

		return <<
				
					{$msg}
				
				
				
			
HTML; } return ''; }