LanguageFilterService
in
Interface LanguageFilterService
Table of Contents
- filterLanguages() : Languages
- Returns a filtered and paginated collection of languages based on the given filter and sorting arguments.
- getLanguagesTotalCount() : int
- Returns total count of languages based on the given filter arguments.
Methods
filterLanguages()
Returns a filtered and paginated collection of languages based on the given filter and sorting arguments.
public
filterLanguages(array<string|int, mixed> $filters[, string|null $sorting = null ][, int $limit = 25 ], int $offset) : Languages
The filters must be a map, that assigns an attribute it filtering pattern.
The sorting must be a comma-separated list of attributes. A -
can be used to change the order to descending.
Parameters
- $filters : array<string|int, mixed>
- $sorting : string|null = null
- $limit : int = 25
- $offset : int
Return values
Languages —getLanguagesTotalCount()
Returns total count of languages based on the given filter arguments.
public
getLanguagesTotalCount(array<string|int, mixed> $filters) : int
The filters must be a map, that assigns an attribute it filtering pattern.
Parameters
- $filters : array<string|int, mixed>