summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/src/Query/QueryContext.php
blob: 936c15ed8b82a7076f431be0ba00e852652ac8e0 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php

namespace SMW\Query;

/**
 * "Query contexts" define restrictions during query parsing and
 * are used to preconfigure query (e.g. special pages show no further
 * results link)
 *
 * @license GNU GPL v2+
 * @since 2.5
 *
 * @author Markus Krötzsch
 */
interface QueryContext {

	/**
	 * Query for special page
	 */
	const SPECIAL_PAGE = 1000;

	/**
	 * Query for inline use
	 */
	const INLINE_QUERY = 1001;

	/**
	 * Deferred query definition
	 */
	const DEFERRED_QUERY = 1002;

	/**
	 * Query for concept definition
	 */
	const CONCEPT_DESC = 1003;

	/**
	 * normal instance retrieval
	 */
	const MODE_INSTANCES = 1;

	/**
	 * find result count only
	 */
	const MODE_COUNT = 2;

	/**
	 * prepare query, but show debug data instead of executing it
	 */
	const MODE_DEBUG = 3;

	/**
	 * do nothing with the query
	 */
	const MODE_NONE = 4;

}