-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to sort and limit when matching contents, locations
- Loading branch information
gggeek
committed
Nov 25, 2018
1 parent
b2c38b1
commit f910d10
Showing
14 changed files
with
304 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Kaliop\eZMigrationBundle\API; | ||
|
||
interface SortingMatcherInterface extends MatcherInterface | ||
{ | ||
/** | ||
* Returns an array of items, or an array-like object, with all items which satisfy the conditions $conditions | ||
* | ||
* @param array $conditions | ||
* @param array $sort | ||
* @param int $offset | ||
* @param int $limit | ||
* @return array|\ArrayObject | ||
*/ | ||
public function match(array $conditions, array $sort = array(), $offset = 0, $limit = 0); | ||
|
||
/** | ||
* Like match, but will throw an exception if there are 0 or more than 1 items matching | ||
* | ||
* @param array $conditions | ||
* @param array $sort | ||
* @param int $offset | ||
* @param int $limit | ||
* @return mixed | ||
* @throws \Exception | ||
*/ | ||
public function matchOne(array $conditions, array $sort = array(), $offset = 0, $limit = 0); | ||
} |
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
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
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
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.