• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/component/selector/entity.php
  • Класс: BitrixIblockComponentSelectorEntity
  • Вызов: Entity::getGridColumnsDescription
protected function getGridColumnsDescription()
{
	$result = [];

	$result['ID'] = [
		'id' => 'ID',
		'name' => 'ID',
		'sort' => 'ID',
		'default' => true
	];
	$result['NAME'] = [
		'id' => 'NAME',
		'name' => Loc::getMessage('ENTITY_SELECTOR_GRID_COLUMN_NAME'),
		'sort' => 'NAME',
		'default' => true
	];
	$result['ACTIVE'] = [
		'id' => 'ACTIVE',
		'name' => Loc::getMessage('ENTITY_SELECTOR_GRID_COLUMN_ACTIVE'),
		'title' => Loc::getMessage('ENTITY_SELECTOR_GRID_COLUMN_TITLE_ACTIVE'),
		'sort' => 'ACTIVE',
		'default' => true
	];
	if ($this->getShowXmlId())
	{
		$result['XML_ID'] = [
			'id' => 'XML_ID',
			'name' => Loc::getMessage('ENTITY_SELECTOR_GRID_COLUMN_XML_ID_MSGVER_1'),
			'sort' => 'XML_ID',
			'default' => false
		];
	}
	$result['CODE'] = [
		'id' => 'CODE',
		'name' => Loc::getMessage('ENTITY_SELECTOR_GRID_COLUMN_CODE'),
		'sort' => 'CODE',
		'default' => false
	];
	$result['SORT'] = [
		'id' => 'SORT',
		'name' => Loc::getMessage('ENTITY_SELECTOR_GRID_COLUMN_SORT'),
		'title' => Loc::getMessage('ENTITY_SELECTOR_GRID_COLUMN_TITLE_SORT'),
		'sort' => 'SORT',
		'default' => false
	];

	return $result;
}