createRangeFacetResult example

switch ($facet->getMode()) {
            case ProductAttributeFacet::MODE_VALUE_LIST_RESULT:
            case ProductAttributeFacet::MODE_RADIO_LIST_RESULT:
                $result = $this->createValueListFacetResult($query$facet$criteria$context);
                break;

            case ProductAttributeFacet::MODE_BOOLEAN_RESULT:
                $result = $this->createBooleanFacetResult($query$facet$criteria);
                break;

            case ProductAttributeFacet::MODE_RANGE_RESULT:
                $result = $this->createRangeFacetResult($query$facet$criteria);
                break;

            default:
                $result = null;
                break;
        }

        if ($result === null) {
            return null;
        }

        
Home | Imprint | This part of the site doesn't use cookies.