aboutsummaryrefslogtreecommitdiff
path: root/views/odd/export/relationship.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-25 14:53:46 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-25 14:53:46 +0000
commite4f113ba40d597b602cc6cf5d8d88caee8ed727a (patch)
treeb685d79f78f8c42e57b5f8a5fb177d35c1165747 /views/odd/export/relationship.php
parent0239951ce60d4f4bef878ea6ad9826152e4a4bf5 (diff)
downloadelgg-e4f113ba40d597b602cc6cf5d8d88caee8ed727a.tar.gz
elgg-e4f113ba40d597b602cc6cf5d8d88caee8ed727a.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Updated ODD handler, now uses views * Normal and ODD view for all data items... cute eh? :) git-svn-id: https://code.elgg.org/elgg/trunk@530 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/odd/export/relationship.php')
-rw-r--r--views/odd/export/relationship.php20
1 files changed, 20 insertions, 0 deletions
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