diff options
author | Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> | 2023-11-15 17:24:37 +0100 |
---|---|---|
committer | Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> | 2023-11-15 17:24:37 +0100 |
commit | 72c191df117700d1b01f21afdf4e657f25b68453 (patch) | |
tree | f6149d9c0b722279bfae50f21b2fafd6ecb61062 /lib/public | |
parent | d79d85ddd2899ed838030c7149baf09cec1a2b6c (diff) | |
download | nextcloud-server-72c191df117700d1b01f21afdf4e657f25b68453.tar.gz nextcloud-server-72c191df117700d1b01f21afdf4e657f25b68453.zip |
Introduce constants for builtin search filters
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Search/IFilter.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/public/Search/IFilter.php b/lib/public/Search/IFilter.php index c4e444e806b..6065622cb71 100644 --- a/lib/public/Search/IFilter.php +++ b/lib/public/Search/IFilter.php @@ -31,6 +31,21 @@ namespace OCP\Search; * @since 28.0.0 */ interface IFilter { + /** @since 28.0.0 */ + public const BUILTIN_TERM = 'term'; + /** @since 28.0.0 */ + public const BUILTIN_SINCE = 'since'; + /** @since 28.0.0 */ + public const BUILTIN_UNTIL = 'until'; + /** @since 28.0.0 */ + public const BUILTIN_PERSON = 'person'; + /** @since 28.0.0 */ + public const BUILTIN_TITLE_ONLY = 'title-only'; + /** @since 28.0.0 */ + public const BUILTIN_PLACES = 'places'; + /** @since 28.0.0 */ + public const BUILTIN_PROVIDER = 'provider'; + /** * Get filter value * |