| Server IP : 82.208.35.60 / Your IP : 216.73.216.238 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/air-sport_cz/www/src/Core/Search/ |
Upload File : |
<?php
/**
* Created by PhpStorm.
* User: dev
* Date: 04/07/18
* Time: 12:24.
*/
namespace PrestaShop\PrestaShop\Core\Search;
use Symfony\Component\HttpFoundation\Request;
/**
* Contract that define how we can retrieve Grid filters from an User request or Repository.
* IMPORTANT NOTE: these methods should ONLY return the filters of their respective scope (no
* default replacement) otherwise you can't know where the values exactly come from which make
* it impossible to fine tune overrides (which one has the priority).
*
* @see SearchParametersResolver class for usage.
* @deprecated Use FiltersBuilderInterface instead
*/
interface SearchParametersInterface
{
public const FILTER_TYPES = [
'limit',
'offset',
'orderBy',
'sortOrder',
'filters',
];
/**
* Retrieve list of filters from User Request (ONLY those present in
* the request).
*
* @param Request $request
* @param string $filterClass the filter class
*
* @return Filters A collection of filters
*/
public function getFiltersFromRequest(Request $request, $filterClass);
/**
* Retrieve list of filters from User searches (ONLY those saved in repository).
*
* @param int $employeeId
* @param int $shopId
* @param string $filterClass the filter class
* @param string $controller the controller name
* @param string $action the action name
*
* @return Filters|null A collection of filters
*/
public function getFiltersFromRepository($employeeId, $shopId, $controller, $action, $filterClass);
}