• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/model/propertyfeature.php
  • Класс: BitrixIblockModelPropertyFeature
  • Вызов: PropertyFeature::getPropertyFeatureList
static function getPropertyFeatureList(array $property, array $description = []): array
{
	$result = self::getIblockFeatureList();

	$event = new MainEvent(
		'iblock',
		__CLASS__.'::'.self::EVENT_ID_FEATURE_LIST,
		['property' => $property, 'description' => $description]
	);
	$event->send();
	foreach($event->getResults() as $eventResult)
	{
		if ($eventResult->getType() !== MainEventResult::SUCCESS)
			continue;
		$list = $eventResult->getParameters();
		if (empty($list) || !is_array($list))
			continue;
		foreach ($list as $item)
		{
			if (empty($item) || !is_array($item))
				continue;
			$item = self::prepareFeatureDescription($item);
			if (empty($item))
				continue;
			$result[] = $item;
		}
		unset($item, $list);
	}
	unset($eventResult);

	return $result;
}