• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/bizproctype/usertypepropertydiskfile.php
  • Класс: BitrixIblockBizprocTypeUserTypePropertyDiskFile
  • Вызов: UserTypePropertyDiskFile::extractValue
static function extractValue(FieldType $fieldType, array $field, array $request)
	{
		$value = parent::extractValue($fieldType, $field, $request);
		if (is_array($value) && isset($value['VALUE']))
		{
			$value = $value['VALUE'];
		}

		if(!$value)
		{
			return null;
		}

		$property = static::getUserType($fieldType);
		$iblockId = self::getIblockId($fieldType);

		if (array_key_exists('AttachFilesWorkflow', $property))
		{
			return call_user_func_array($property['AttachFilesWorkflow'], array($iblockId, $value));
		}

		return null;
	}