• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/propertyindex/facet.php
  • Класс: BitrixIblockPropertyIndexFacet
  • Вызов: Facet::addDictionaryPropertyFilter
public function addDictionaryPropertyFilter($propertyId, $operator, $value)
{
	$facetId = $this->storage->propertyIdToFacetId($propertyId);
	if ($operator == "=")
	{
		if (isset($this->where[$facetId]))
		{
			$this->where[$facetId]["VALUES"][] = intval($value);
		}
		else
		{
			$this->where[$facetId] = array(
				"TYPE" => Storage::DICTIONARY,
				"OP" => $operator,
				"FACET_ID" => $facetId,
				"VALUES" => array(intval($value)),
			);
		}
	}
}