• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/UI/PropertyProduct.php
  • Класс: BitrixCatalogUIPropertyProduct
  • Вызов: PropertyProduct::getColumnNames
static function getColumnNames(): array
{
	$result = [];
	$iterator = PropertyTable::getList([
		'select' => [
			'ID',
			'IBLOCK_ID',
			'SORT',
			'NAME',
		],
		'filter' => [
			'=IBLOCK_ID' => self::getIblockIds(),
			'=ACTIVE' => 'Y',
			[
				'LOGIC' => 'OR',
				'==USER_TYPE' => null,
				'=USER_TYPE' => '',
				'@USER_TYPE' => self::getAllowedPropertyUserTypes(),
			],
			'!@PROPERTY_TYPE' => self::getRestrictedPropertyTypes(),
			'!@CODE' => self::getRestrictedProperties(),
		],
		'order' => [
			'IBLOCK_ID' => 'ASC',
			'SORT' => 'ASC',
			'NAME' => 'ASC',
		],
	]);

	while ($prop = $iterator->fetch())
	{
		$result[] = 'PROPERTY_' . $prop['ID'];
	}
	unset($iterator);

	$skuFields = [
		'SKU_ID',
		'SKU_NAME',
		'SKU_DESCRIPTION',
		'LENGTH',
		'WIDTH',
		'HEIGHT',
		'WEIGHT',
	];

	return array_merge($result, $skuFields);
}