summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Search/SearchQuery.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-02-02 18:20:08 +0100
committerRobin Appelman <robin@icewind.nl>2017-03-01 14:06:39 +0100
commitdf2063ee7b49d051f9081c6fd416dd8791358ada (patch)
treea90e9f6dbae0767247593941e7c6e95b9c41befb /lib/private/Files/Search/SearchQuery.php
parent706131b394eef4d346f8019b4978f9a735139b03 (diff)
downloadnextcloud-server-df2063ee7b49d051f9081c6fd416dd8791358ada.tar.gz
nextcloud-server-df2063ee7b49d051f9081c6fd416dd8791358ada.zip
Implement webdav SEARCH
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Search/SearchQuery.php')
-rw-r--r--lib/private/Files/Search/SearchQuery.php57
1 files changed, 57 insertions, 0 deletions
diff --git a/lib/private/Files/Search/SearchQuery.php b/lib/private/Files/Search/SearchQuery.php
index a017d3e245b..8a0478ae98e 100644
--- a/lib/private/Files/Search/SearchQuery.php
+++ b/lib/private/Files/Search/SearchQuery.php
@@ -21,3 +21,60 @@
namespace OC\Files\Search;
+use OCP\Files\Search\ISearchOperator;
+use OCP\Files\Search\ISearchOrder;
+use OCP\Files\Search\ISearchQuery;
+
+class SearchQuery implements ISearchQuery {
+ /** @var ISearchOperator */
+ private $searchOperation;
+ /** @var integer */
+ private $limit;
+ /** @var integer */
+ private $offset;
+ /** @var ISearchOrder[] */
+ private $order;
+
+ /**
+ * SearchQuery constructor.
+ *
+ * @param ISearchOperator $searchOperation
+ * @param int $limit
+ * @param int $offset
+ * @param array $order
+ */
+ public function __construct(ISearchOperator $searchOperation, $limit, $offset, array $order) {
+ $this->searchOperation = $searchOperation;
+ $this->limit = $limit;
+ $this->offset = $offset;
+ $this->order = $order;
+ }
+
+ /**
+ * @return ISearchOperator
+ */
+ public function getSearchOperation() {
+ return $this->searchOperation;
+ }
+
+ /**
+ * @return int
+ */
+ public function getLimit() {
+ return $this->limit;
+ }
+
+ /**
+ * @return int
+ */
+ public function getOffset() {
+ return $this->offset;
+ }
+
+ /**
+ * @return ISearchOrder[]
+ */
+ public function getOrder() {
+ return $this->order;
+ }
+}