• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/basetype/file.php
  • Класс: BitrixBizprocBaseTypeFile
  • Вызов: File::renderMobileControl
static function renderMobileControl(FieldType $fieldType, array $field, $value)
{
	/** @var CMain */
	global $APPLICATION;
	ob_start();
	$APPLICATION->IncludeComponent(
		'bitrix:main.file.input',
		'mobile',
		[
			'MODULE_ID' => 'bizproc',
			'CONTROL_ID' => static::generateControlId($field),
			'ALLOW_UPLOAD' => 'A',
			'INPUT_NAME' => static::generateControlName($field),
			'INPUT_VALUE' => $value,
			'MULTIPLE' => $fieldType->isMultiple() ? 'Y' : 'N'
		]
	);

	return ob_get_clean();
}