aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Search/IFilter.php
blob: d3617bbc84367806630dd8cc8360e9a3dd883c65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php

declare(strict_types=1);
/**
 * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
namespace OCP\Search;

/**
 * Interface for search filters
 *
 * @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
	 *
	 * @since 28.0.0
	 */
	public function get(): mixed;
}