ZoneSortingService
class ZoneSortingService (View source)
Resolves the zone list's sort column, direction and reverse-zone filter from submitted values and the session.
Methods
No description
Get zone sort order from session/submitted values. Callers pass distinct $sessionKey values (see {SessionKeys}) to keep buckets isolated.
Apply client-side sorting to reverse zones when sorting by name
Get reverse zone type filter from a submitted value, falling back to session.
Details
__construct(ReverseZoneSorterInterface $reverseZoneSorting, UserContextService $userContextService)
No description
array
getZoneSortOrder(array $allowedValues, string $sessionKey = SessionKeys::LIST_ZONE_SORT_BY, string $defaultSortBy = 'name', mixed $submittedSortBy = null, mixed $submittedDirection = null)
Get zone sort order from session/submitted values. Callers pass distinct $sessionKey values (see {SessionKeys}) to keep buckets isolated.
array
applySortingToZones(array $zones, string $sortBy, string $sortType)
Apply client-side sorting to reverse zones when sorting by name
string
getReverseZoneTypeFilter(mixed $submittedType = null)
Get reverse zone type filter from a submitted value, falling back to session.