summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/src/Schema/Schema.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/src/Schema/Schema.php')
-rw-r--r--www/wiki/extensions/SemanticMediaWiki/src/Schema/Schema.php44
1 files changed, 44 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/src/Schema/Schema.php b/www/wiki/extensions/SemanticMediaWiki/src/Schema/Schema.php
new file mode 100644
index 00000000..0bd5d218
--- /dev/null
+++ b/www/wiki/extensions/SemanticMediaWiki/src/Schema/Schema.php
@@ -0,0 +1,44 @@
+<?php
+
+namespace SMW\Schema;
+
+/**
+ * @license GNU GPL v2+
+ * @since 3.0
+ *
+ * @author mwjames
+ */
+interface Schema {
+
+ const SCHEMA_TYPE = 'type';
+ const SCHEMA_DESCRIPTION = 'description';
+ const SCHEMA_TAG = 'tags';
+
+ /**
+ * @since 3.0
+ *
+ * @param string $key
+ * @param mixed $default
+ *
+ * @return mixed
+ */
+ public function get( $key, $default = null );
+
+ /**
+ * Returns the name of the schema which is equivalent with the page name
+ * without the namespace prefix.
+ *
+ * @since 3.0
+ *
+ * @return string
+ */
+ public function getName();
+
+ /**
+ * @since 3.0
+ *
+ * @return string
+ */
+ public function getValidationSchema();
+
+}