diff options
Diffstat (limited to 'lib/public/Files/Search')
-rw-r--r-- | lib/public/Files/Search/ISearchBinaryOperator.php | 5 | ||||
-rw-r--r-- | lib/public/Files/Search/ISearchComparison.php | 3 | ||||
-rw-r--r-- | lib/public/Files/Search/ISearchOperator.php | 5 | ||||
-rw-r--r-- | lib/public/Files/Search/ISearchQuery.php | 24 |
4 files changed, 36 insertions, 1 deletions
diff --git a/lib/public/Files/Search/ISearchBinaryOperator.php b/lib/public/Files/Search/ISearchBinaryOperator.php index 248e3de56b8..d5a2d5dc02d 100644 --- a/lib/public/Files/Search/ISearchBinaryOperator.php +++ b/lib/public/Files/Search/ISearchBinaryOperator.php @@ -21,6 +21,9 @@ namespace OCP\Files\Search; +/** + * @since 12.0.0 + */ interface ISearchBinaryOperator extends ISearchOperator { const OPERATOR_AND = 'and'; const OPERATOR_OR = 'or'; @@ -32,6 +35,7 @@ interface ISearchBinaryOperator extends ISearchOperator { * One of the ISearchBinaryOperator::OPERATOR_* constants * * @return string + * @since 12.0.0 */ public function getType(); @@ -41,6 +45,7 @@ interface ISearchBinaryOperator extends ISearchOperator { * One argument for the 'not' operator and two for 'and' and 'or' * * @return ISearchOperator[] + * @since 12.0.0 */ public function getArguments(); } diff --git a/lib/public/Files/Search/ISearchComparison.php b/lib/public/Files/Search/ISearchComparison.php index 05342218616..e5175ee3117 100644 --- a/lib/public/Files/Search/ISearchComparison.php +++ b/lib/public/Files/Search/ISearchComparison.php @@ -33,6 +33,7 @@ interface ISearchComparison extends ISearchOperator { * Get the type of comparison, one of the ISearchComparison::COMPARE_* constants * * @return string + * @since 12.0.0 */ public function getType(); @@ -42,6 +43,7 @@ interface ISearchComparison extends ISearchOperator { * i.e. 'size', 'name' or 'mimetype' * * @return string + * @since 12.0.0 */ public function getField(); @@ -49,6 +51,7 @@ interface ISearchComparison extends ISearchOperator { * Get the value to compare the field with * * @return string|integer|\DateTime + * @since 12.0.0 */ public function getValue(); } diff --git a/lib/public/Files/Search/ISearchOperator.php b/lib/public/Files/Search/ISearchOperator.php index fc1db57f4ca..047792bc782 100644 --- a/lib/public/Files/Search/ISearchOperator.php +++ b/lib/public/Files/Search/ISearchOperator.php @@ -21,6 +21,9 @@ namespace OCP\Files\Search; -interface ISearchCondition { +/** + * @since 12.0.0 + */ +interface ISearchOperator { } diff --git a/lib/public/Files/Search/ISearchQuery.php b/lib/public/Files/Search/ISearchQuery.php index f9c07533a1e..5a701b321b1 100644 --- a/lib/public/Files/Search/ISearchQuery.php +++ b/lib/public/Files/Search/ISearchQuery.php @@ -30,4 +30,28 @@ interface ISearchQuery { * @since 12.0.0 */ public function getSearchOperation(); + + /** + * Get the maximum number of results to return + * + * @return integer + * @since 12.0.0 + */ + public function getLimit(); + + /** + * Get the offset for returned results + * + * @return integer + * @since 12.0.0 + */ + public function getOffset(); + + /** + * The fields and directions to order by + * + * @return ISearchOrder[] + * @since 12.0.0 + */ + public function getOrder(); } |