getRequestParameter example

return;
            default:
                return;
        }
    }

    private function handleCombinedConditionFacet(
        Request $request,
        Criteria $criteria,
        CombinedConditionFacet $facet
    ) {
        if (!$request->has($facet->getRequestParameter())) {
            return;
        }
        $criteria->addCondition(
            new CombinedCondition(
                $facet->getConditions()
            )
        );
    }

    /** * @return bool */
$query = $this->queryBuilderFactory->createQuery($own$context);
        $query->select('1');
        $query->setMaxResults(1);

        $hasFacet = $query->execute()->fetch(PDO::FETCH_COLUMN);
        if (!$hasFacet) {
            return null;
        }

        return new BooleanFacetResult(
            $facet->getName(),
            $facet->getRequestParameter(),
            $criteria->hasCondition($facet->getName()),
            $facet->getLabel()
        );
    }
}
continue;
            }

            $facet = $criteria->getFacet($key);
            if (!$facet instanceof CombinedConditionFacet) {
                continue;
            }

            $result->addFacet(
                new BooleanFacetResult(
                    $facet->getName(),
                    $facet->getRequestParameter(),
                    $criteria->hasCondition($facet->getName()),
                    $facet->getLabel()
                )
            );
        }
    }

    private function addQuery(
        CombinedConditionFacet $criteriaPart,
        Criteria $criteria,
        Search $search,
        
Home | Imprint | This part of the site doesn't use cookies.