aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/export.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/export.php')
-rw-r--r--engine/lib/export.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/engine/lib/export.php b/engine/lib/export.php
index 89b5a1ef5..5937a71bc 100644
--- a/engine/lib/export.php
+++ b/engine/lib/export.php
@@ -11,6 +11,17 @@
*/
/**
+ * Define an interface for all exportable objects.
+ */
+ interface Exportable
+ {
+ /**
+ * This must take the contents of the object and return it as a stdClass.
+ */
+ public function export();
+ }
+
+ /**
* Export a GUID.
*
* This function exports a GUID and all information related to it in an XML format.