aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/export.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-28 19:18:55 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-28 19:18:55 +0000
commit6441a960edc875a0c33fa8bbd735fd1faebaa552 (patch)
tree4127ac318d37bf0c36b454d1918dadce5e1343d2 /engine/lib/export.php
parent5aa0bbb5bef7265fb570b400f7966b8411295f9e (diff)
downloadelgg-6441a960edc875a0c33fa8bbd735fd1faebaa552.tar.gz
elgg-6441a960edc875a0c33fa8bbd735fd1faebaa552.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Metadata and Annotations now exported. git-svn-id: https://code.elgg.org/elgg/trunk@291 36083f99-b078-4883-b0ff-0f9b5a30f544
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.