summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/src/Query/Parser.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/src/Query/Parser.php')
-rw-r--r--www/wiki/extensions/SemanticMediaWiki/src/Query/Parser.php52
1 files changed, 52 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/src/Query/Parser.php b/www/wiki/extensions/SemanticMediaWiki/src/Query/Parser.php
new file mode 100644
index 00000000..d34f6905
--- /dev/null
+++ b/www/wiki/extensions/SemanticMediaWiki/src/Query/Parser.php
@@ -0,0 +1,52 @@
+<?php
+
+namespace SMW\Query;
+
+use SMW\Query\Language\Description;
+
+/**
+ * @license GNU GPL v2+
+ * @since 3.0
+ *
+ * @author mwjames
+ */
+interface Parser {
+
+ /**
+ * @since 3.0
+ *
+ * @param DIProperty|string $property
+ * @param string $value
+ *
+ * @return string
+ */
+ public function createCondition( $property, $value );
+
+ /**
+ * @since 3.0
+ *
+ * @return []
+ */
+ public function getErrors();
+
+ /**
+ * Describes a processed description instance in terms of the existence of
+ * a self reference in connection with the context page a query is
+ * embedded.
+ *
+ * @since 3.0
+ *
+ * @return boolean
+ */
+ public function containsSelfReference();
+
+ /**
+ * @since 3.0
+ *
+ * @param string $condition
+ *
+ * @return Description
+ */
+ public function getQueryDescription( $condition );
+
+}