$_GET['order'] public ?ProductOrder $orderBy = null, public OrderDirection $orderDir = OrderDirection::ASC, // Miscellaneous public ?\Pager $pager = null, /** * @var bool $fetchAllFilters whether to create a query without filters to fetch all available filters in category * (first request to a non-filtered category) */ public bool $fetchAllFilters = false, ) { } public function isSearchRequest(): bool { $baseFilter = BaseFilterParams::wrap($this->baseFilterParams); return $baseFilter->getSectionId() === CategoryRequestHandler::SEARCH_CATEGORY_ID; } /** * Tell the "query compiler" to not fetch any products. Useful for wanting to fetch only aggregations. */ public function setNoProducts(): void { if (!$this->pager) { $this->pager = new \Pager(); } $this->pager->setOnPage(-1); } }