aboutsummaryrefslogtreecommitdiff
path: root/views/json/export/relationship.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/json/export/relationship.php')
-rw-r--r--views/json/export/relationship.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/views/json/export/relationship.php b/views/json/export/relationship.php
new file mode 100644
index 000000000..e582cc898
--- /dev/null
+++ b/views/json/export/relationship.php
@@ -0,0 +1,22 @@
+<?php
+ /**
+ * Elgg relationship export.
+ * Displays a relationship using JSON.
+ *
+ * @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'];
+
+ $export = new stdClass;
+
+ foreach ($r as $k => $v)
+ $export->$k = $v;
+
+ echo json_encode($export);
+?> \ No newline at end of file