aboutsummaryrefslogtreecommitdiff
path: root/views/odd/export
diff options
context:
space:
mode:
Diffstat (limited to 'views/odd/export')
-rw-r--r--views/odd/export/entity.php16
-rw-r--r--views/odd/export/metadata.php21
-rw-r--r--views/odd/export/relationship.php20
3 files changed, 57 insertions, 0 deletions
diff --git a/views/odd/export/entity.php b/views/odd/export/entity.php
new file mode 100644
index 000000000..d6efd413c
--- /dev/null
+++ b/views/odd/export/entity.php
@@ -0,0 +1,16 @@
+<?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'];
+ echo export($entity->guid);
+?> \ No newline at end of file
diff --git a/views/odd/export/metadata.php b/views/odd/export/metadata.php
new file mode 100644
index 000000000..dff62086a
--- /dev/null
+++ b/views/odd/export/metadata.php
@@ -0,0 +1,21 @@
+<?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;
+?> \ No newline at end of file
diff --git a/views/odd/export/relationship.php b/views/odd/export/relationship.php
new file mode 100644
index 000000000..85387a273
--- /dev/null
+++ b/views/odd/export/relationship.php
@@ -0,0 +1,20 @@
+<?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;
+?> \ No newline at end of file