aboutsummaryrefslogtreecommitdiff
path: root/views/atom/export/relationship.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-20 11:38:25 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-20 11:38:25 +0000
commit9caa09ee888d7884e22cc46089e6e0fb6579732c (patch)
tree6ee22ea1104a337fce3a64d0b519073a4ffbabbd /views/atom/export/relationship.php
parent6258b38d2e274df93333ce36696bcbf49fb8ea2e (diff)
downloadelgg-9caa09ee888d7884e22cc46089e6e0fb6579732c.tar.gz
elgg-9caa09ee888d7884e22cc46089e6e0fb6579732c.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Committed abortive Atom wrapper... we need to support different import/export git-svn-id: https://code.elgg.org/elgg/trunk@657 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/atom/export/relationship.php')
-rw-r--r--views/atom/export/relationship.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/views/atom/export/relationship.php b/views/atom/export/relationship.php
new file mode 100644
index 000000000..d0ad62385
--- /dev/null
+++ b/views/atom/export/relationship.php
@@ -0,0 +1,21 @@
+<?php
+ /**
+ * Elgg relationship export.
+ * Displays a relationship using ODD over Atom
+ *
+ * @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());
+ $odd->setWrapperFactory(new ODDAtomWrapperFactory());
+
+ echo $odd;
+?> \ No newline at end of file