• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/component/selector/entity.php
  • Класс: BitrixIblockComponentSelectorEntity
  • Вызов: Entity::getGridFilterDefinition
protected function getGridFilterDefinition() //TODO: remove this method
{
	$result = [];
	$result['NAME'] = [
		'id' => 'NAME',
		'type' => 'string',
		'name' => Loc::getMessage('ENTITY_SELECTOR_FILTER_FIELD_NAME'),
		'quickSearch' => true,
		'operators' => [
			'default' => '%',
			'quickSearch' => '?'
		],
		'default' => true
	];
	$result['ID'] = [
		'id' => 'ID',
		'name' => Loc::getMessage('ENTITY_SELECTOR_FILTER_FIELD_ID'),
		'type' => 'number',
		'operators' => [
			'default' => '=',
			'exact' => '=',
			'range' => '><',
			'more' => '>',
			'less' => '<'
		],
		'default' => true
	];
	$result['ACTIVE'] = [
		'id' => 'ACTIVE',
		'name' => Loc::getMessage('ENTITY_SELECTOR_FILTER_FIELD_ACTIVE'),
		'type' => 'list',
		'items' => $this->getBinaryDictionary(),
		'operators' => [
			'default' => '=',
			'exact' => '='
		],
		'default' => false
	];
	if ($this->getShowXmlId())
	{
		$result['XML_ID'] = [
			'id' => 'XML_ID',
			'name' => Loc::getMessage('ENTITY_SELECTOR_FILTER_FIELD_XML_ID_MSGVER_1'),
			'type' => 'string',
			'operators' => [
				'default' => '='
			],
			'default' => false
		];
	}
	$result['CODE'] = [
		'id' => 'CODE',
		'name' => Loc::getMessage('ENTITY_SELECTOR_FILTER_FIELD_CODE'),
		'type' => 'string',
		'operators' => [
			'default' => '='
		],
		'default' => false
	];

	return $result;
}