- Модуль: iblock
- Путь к файлу: ~/bitrix/modules/iblock/lib/landingsource/dataloader.php
- Класс: BitrixIblockLandingSourceDataLoader
- Вызов: DataLoader::getFilterFieldsDescription
private function getFilterFieldsDescription()
{
$result = [];
$result['NAME'] = [
'id' => 'NAME',
'type' => 'string',
'operators' => [
'default' => '%',
'quickSearch' => '?'
],
'quickSearch' => true
];
$result['ID'] = [
'id' => 'ID',
'type' => 'number',
'operators' => [
'default' => '=',
'exact' => '=',
'range' => '><',
'more' => '>',
'less' => '<'
]
];
$result['SECTION_ID'] = [
'id' => 'SECTION_ID',
'type' => 'list',
'operators' => [
'default' => '='
]
];
$result['INCLUDE_SUBSECTIONS'] = [
'id' => 'INCLUDE_SUBSECTIONS',
'type' => 'checkbox',
'operators' => [
'default' => ''
]
];
$result['ACTIVE'] = [
'id' => 'ACTIVE',
'type' => 'list',
'operators' => [
'default' => '='
]
];
$result['XML_ID'] = [
'id' => 'XML_ID',
'type' => 'string',
'operators' => [
'default' => '='
]
];
$result['CODE'] = [
'id' => 'CODE',
'type' => 'string',
'operators' => [
'default' => '='
]
];
$result['ACTIVE_FROM'] = [
'id' => 'ACTIVE_FROM',
'type' => 'date',
'operators' => [
'default' => '=',
'range' => '><'
]
];
$result['ACTIVE_TO'] = [
'id' => 'ACTIVE_TO',
'type' => 'date',
'operators' => [
'default' => '=',
'range' => '><'
]
];
if ($this->catalogIncluded)
{
$result['TYPE'] = [
'id' => 'TYPE',
'type' => 'list',
'operators' => [
'default' => '='
],
'params' => ['multiple' => 'Y']
];
$result['BUNDLE'] = [
'id' => 'BUNDLE',
'type' => 'list',
'operators' => [
'default' => '='
]
];
$result['AVAILABLE'] = [
'id' => 'AVAILABLE',
'type' => 'list',
'operators' => [
'default' => '='
]
];
}
if ($this->iblockId > 0)
{
$properties = $this->getFilterProductPropertiesDescription();
if (!empty($properties))
$result = array_merge($result, $properties);
$properties = $this->getFilterOfferPropertiesDescription();
if (!empty($properties))
$result = array_merge($result, $properties);
unset($properties);
}
return $result;
}