Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-26528

As a Developer I want access to getSortClauseFromLocation in API

    XMLWordPrintable

    Details

      Description

      Story is about extracting the current private logic in Location Service and User Service to simplify getting sort clause based on a Location object, thus:

      • Avoid Developers having to duplicate this mapping in own code, for mapping Location->sort* info to the correct Search sort clauses.
      • Reduce code duplication internally in Repository.

      This method will be exposed on SearchService with new method: getSortClauseFromLocation(Location $location) returning array of sort clauses for direct use on LocationQuery->sortClauses.


      Originial desc:
      With this SortClauseMapper is it possible to get the SortClause objects from a location.
      It's accessible over the SearchService::getSortClauseFromLocation method.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            blankse Sebastian Blank
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: