Order to apply the filters:
1 - Filter that remove filtered rows
2 - Filter that sort the remaining rows
3 - Filter that keep only a subset of the results
4 - Presentation filters
public static getGenericFiltersInformation ( ) : array | ||
return | array | See the code for spec |
/** * Returns the current URL without generic filter query parameters. * * @param array $params Query parameter values to override in the new URL. * @return string */ public static function getCurrentUrlWithoutGenericFilters($params) { // unset all filter query params so the related report will show up in its default state, // unless the filter param was in $queryParams $genericFiltersInfo = DataTableGenericFilter::getGenericFiltersInformation(); foreach ($genericFiltersInfo as $filter) { foreach ($filter[1] as $queryParamName => $queryParamInfo) { if (!isset($params[$queryParamName])) { $params[$queryParamName] = null; } } } return Url::getCurrentQueryStringWithParametersModified($params); }