-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for getting the results for a location (#38)
- Loading branch information
Bertrand Dunogier
authored
Jan 13, 2021
1 parent
2ebe523
commit e3de453
Showing
9 changed files
with
300 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright (C) eZ Systems AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
namespace EzSystems\EzPlatformQueryFieldType\API; | ||
|
||
use eZ\Publish\API\Repository\Values\Content\Location; | ||
|
||
/** | ||
* Executes queries for a query field for a given a location. | ||
*/ | ||
interface QueryFieldLocationService | ||
{ | ||
/** | ||
* Returns the query results for the given location. | ||
* | ||
* @return iterable An iterable that yields Content items. | ||
*/ | ||
public function loadContentItemsForLocation(Location $location, string $fieldDefinitionIdentifier): iterable; | ||
|
||
/** | ||
* Returns a slice of the query results for the given location. | ||
* | ||
* @return iterable An iterable that yields Content items. | ||
*/ | ||
public function loadContentItemsSliceForLocation(Location $location, string $fieldDefinitionIdentifier, int $offset, int $limit): iterable; | ||
|
||
/** | ||
* Counts the results for the given location. | ||
*/ | ||
public function countContentItemsForLocation(Location $location, string $fieldDefinitionIdentifier): int; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.