• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/grid/column/elementpropertyprovider.php
  • Класс: BitrixIblockGridColumnElementPropertyProvider
  • Вызов: ElementPropertyProvider::getPropertyEnumValues
private function getPropertyEnumValues(int $propertyId): array
{
	$result = [];

	$iterator = PropertyEnumerationTable::getList([
		'select' => [
			'ID',
			'VALUE',
			'DEF',
			'SORT',
		],
		'filter' => [
			'=PROPERTY_ID' => $propertyId
		],
		'order' => [
			'SORT' => 'ASC',
			'VALUE' => 'ASC',
			'ID' => 'ASC',
		],
		'cache' => [
			'ttl' => 86400,
		],
	]);
	while ($row = $iterator->fetch())
	{
		$id = (int)$row['ID'];
		$result[$id] = [
			'ID' => $id,
			'VALUE' => $row['VALUE'],
			'DEF' => $row['DEF'],
		];
	}
	unset($row, $iterator);

	return $result;
}