• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ezsystems / ezpublish-kernel / 8423
7%

Build:
DEFAULT BRANCH: master
Ran 21 Feb 2019 12:59AM UTC
Jobs 1
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Feb 2019 12:59AM UTC coverage: ?%. First build
8423

Pull #1836

travis-ci

André R
EZP-26685: Simplify getting SortClause for location so it can be used from Query Type

getSortClauseByLocation() introduced in #1809 is about to become part of a release, and a check
on how it could be used from Query Type made it clear it can be simplified.

This change depends on bump to PHP 5.6 as requriment as done in #1835 to be a able to also
simplify the logic used by using array constant for the lookup allowing code to also use this
if needed. _(& not that it matters when doing a search, but PHP won't need to creat array on execution)_

The change here allows for being able to use this form Query Type in the folllowing way:
```
      <?php
      namespace AppBundle\QueryType;

      use eZ\Publish\API\Repository\Values\Content\LocationQuery;
      use eZ\Publish\API\Repository\Values\Content\Query\Criterion\ParentLocationId;
      use eZ\Publish\Core\QueryType\QueryType;

      class LocationChildrenQueryType implements QueryType
      {
          public function getQuery(array $parameters = [])
          {
              /**
               * @var eZ\Publish\API\Repository\Values\Content\Location $parent
               */
              $parent = $parameters['parentLocation'];
              return new LocationQuery([
                  'filter' => new ParentLocationId($parent->id),
                  'sortClauses' => $parent->getSortClauses(),
              ]);
          }

          public function getSupportedParameters()
          {
              return ['parentLocation'];
          }

          public static function getName()
          {
              return 'LocationChildren';
          }
      }
```
Pull Request #1836:
Jobs
ID Job ID Ran Files Coverage
3 8423.3 (TEST_CONFIG="phpunit-integration-legacy.xml" DB="postgresql" DATABASE="pgsql://postgres@localhost/testdb" SYMFONY_VERSION="~2.7.0") 21 Feb 2019 12:59AM UTC 0
Travis Job 8423.3
Source Files on build 8423
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #8423
  • Pull Request #1836
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc