aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/bookmark/BookmarkServiceInterface.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2021-01-20 14:45:59 +0100
committerArthurHoaro <arthur@hoa.ro>2021-01-20 15:01:29 +0100
commit9b8c0a4560fa1d87cab1529099b1b4677e92e265 (patch)
tree330a9b1a42ff7b7f24a76612b57fae63417ef483 /application/bookmark/BookmarkServiceInterface.php
parent055d97f9a9e67d8ee8ae81bbf59a4b846a145d9f (diff)
downloadShaarli-9b8c0a4560fa1d87cab1529099b1b4677e92e265.tar.gz
Shaarli-9b8c0a4560fa1d87cab1529099b1b4677e92e265.tar.zst
Shaarli-9b8c0a4560fa1d87cab1529099b1b4677e92e265.zip
Handle pagination through BookmarkService
Handle all search results through SearchResult object. This is a required step toward implementing a BookmarkService based on SQL database. Related to #953
Diffstat (limited to 'application/bookmark/BookmarkServiceInterface.php')
-rw-r--r--application/bookmark/BookmarkServiceInterface.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/application/bookmark/BookmarkServiceInterface.php b/application/bookmark/BookmarkServiceInterface.php
index 08cdbb4e..4b1f0daa 100644
--- a/application/bookmark/BookmarkServiceInterface.php
+++ b/application/bookmark/BookmarkServiceInterface.php
@@ -44,16 +44,18 @@ interface BookmarkServiceInterface
44 * @param bool $caseSensitive 44 * @param bool $caseSensitive
45 * @param bool $untaggedOnly 45 * @param bool $untaggedOnly
46 * @param bool $ignoreSticky 46 * @param bool $ignoreSticky
47 * @param array $pagination This array can contain the following keys for pagination: limit, offset.
47 * 48 *
48 * @return Bookmark[] 49 * @return SearchResult
49 */ 50 */
50 public function search( 51 public function search(
51 array $request = [], 52 array $request = [],
52 string $visibility = null, 53 string $visibility = null,
53 bool $caseSensitive = false, 54 bool $caseSensitive = false,
54 bool $untaggedOnly = false, 55 bool $untaggedOnly = false,
55 bool $ignoreSticky = false 56 bool $ignoreSticky = false,
56 ); 57 array $pagination = []
58 ): SearchResult;
57 59
58 /** 60 /**
59 * Get a single bookmark by its ID. 61 * Get a single bookmark by its ID.