✏️ 正在编辑: SearchParametersInterface.php
路径:
/home/bpioifn/www/pigmentse/src/Core/Search/SearchParametersInterface.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?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 { const FILTER_TYPES = array( '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); }
💾 保存文件
← 返回文件管理器