aboutsummaryrefslogtreecommitdiff
path: root/views/opendd/export
diff options
context:
space:
mode:
Diffstat (limited to 'views/opendd/export')
-rw-r--r--views/opendd/export/entity.php19
-rw-r--r--views/opendd/export/metadata.php23
-rw-r--r--views/opendd/export/relationship.php22
3 files changed, 64 insertions, 0 deletions
diff --git a/views/opendd/export/entity.php b/views/opendd/export/entity.php
new file mode 100644
index 000000000..a147a707a
--- /dev/null
+++ b/views/opendd/export/entity.php
@@ -0,0 +1,19 @@
+<?php
+ /**
+ * Elgg Entity export.
+ * Displays an entity as ODD
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ $entity = $vars['entity'];
+ $serialised = exportAsArray($vars['entity']->guid);
+ foreach ($serialised as $s)
+ echo $s;
+
+?> \ No newline at end of file
diff --git a/views/opendd/export/metadata.php b/views/opendd/export/metadata.php
new file mode 100644
index 000000000..e6f74e2d2
--- /dev/null
+++ b/views/opendd/export/metadata.php
@@ -0,0 +1,23 @@
+<?php
+ /**
+ * Elgg metadata export.
+ * Displays a metadata item using the current view.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ $m = $vars['metadata'];
+ $uuid = $vars['uuid'];
+
+ //$odd = new ODDDocument();
+ //$odd->addElement($m->export());
+
+ //echo $odd;
+
+ echo $m->export();
+?> \ No newline at end of file
diff --git a/views/opendd/export/relationship.php b/views/opendd/export/relationship.php
new file mode 100644
index 000000000..28b3026d5
--- /dev/null
+++ b/views/opendd/export/relationship.php
@@ -0,0 +1,22 @@
+<?php
+ /**
+ * Elgg relationship export.
+ * Displays a relationship using ODD.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ $r = $vars['relationship'];
+
+ //$odd = new ODDDocument();
+ //$odd->addElement($r->export());
+
+ //echo $odd;
+
+ echo $r->export();
+?> \ No newline at end of file