diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/src/Query/QueryContext.php')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/src/Query/QueryContext.php | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/src/Query/QueryContext.php b/www/wiki/extensions/SemanticMediaWiki/src/Query/QueryContext.php new file mode 100644 index 00000000..936c15ed --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/src/Query/QueryContext.php @@ -0,0 +1,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; + +} |