summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/src/PageInfo.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/src/PageInfo.php')
-rw-r--r--www/wiki/extensions/SemanticMediaWiki/src/PageInfo.php78
1 files changed, 78 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/src/PageInfo.php b/www/wiki/extensions/SemanticMediaWiki/src/PageInfo.php
new file mode 100644
index 00000000..3cb75e34
--- /dev/null
+++ b/www/wiki/extensions/SemanticMediaWiki/src/PageInfo.php
@@ -0,0 +1,78 @@
+<?php
+
+namespace SMW;
+
+/**
+ * Facade interface to specify access to page information
+ *
+ * @ingroup SMW
+ *
+ * @license GNU GPL v2+
+ * @since 1.9
+ *
+ * @author mwjames
+ */
+interface PageInfo {
+
+ /**
+ * Returns a modification date
+ *
+ * @since 1.9
+ *
+ * @return integer
+ */
+ public function getModificationDate();
+
+ /**
+ * Returns a creation date
+ *
+ * @since 1.9
+ *
+ * @return integer
+ */
+ public function getCreationDate();
+
+ /**
+ * Whether the page object is new or not
+ *
+ * @since 1.9
+ *
+ * @return boolean
+ */
+ public function isNewPage();
+
+ /**
+ * Returns a user object for the last editor
+ *
+ * @since 1.9
+ *
+ * @return Title
+ */
+ public function getLastEditor();
+
+ /**
+ * @since 1.9.1
+ *
+ * @return boolean
+ */
+ public function isFilePage();
+
+ /**
+ * @see File::getMediaType
+ *
+ * @since 1.9.1
+ *
+ * @return string|null
+ */
+ public function getMediaType();
+
+ /**
+ * @see File::getMimeType
+ *
+ * @since 1.9.1
+ *
+ * @return string|null
+ */
+ public function getMimeType();
+
+}