• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integrity/duplicateindextypesettingstable.php
  • Класс: Bitrix\Crm\Integrity\DuplicateIndexTypeSettingsTable
  • Вызов: DuplicateIndexTypeSettingsTable::getProgressData
static function getProgressData(int $volatileTypeId): array
{
	if (!DuplicateVolatileCriterion::isSupportedType($volatileTypeId))
	{
		throw new ArgumentException('Unsupported duplacate index type', 'volatileTypeId');
	}

	$row = static::getList(
		[
			'filter' => ['=ID' => $volatileTypeId],
			'select' => ['PROGRESS_DATA'],
		]
	)->fetch();

	$result = [];
	if (isset($row['PROGRESS_DATA']) && is_string($row['PROGRESS_DATA']) && $row['PROGRESS_DATA'] !== '')
	{
		$result = unserialize($row['PROGRESS_DATA'], ['allowed_classes' => false]);
		if (!is_array($result))
		{
			$result = [];
		}
	}

	return $result;
}