diff options
Diffstat (limited to 'views/php/export/relationship.php')
-rw-r--r-- | views/php/export/relationship.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/views/php/export/relationship.php b/views/php/export/relationship.php new file mode 100644 index 000000000..691e63067 --- /dev/null +++ b/views/php/export/relationship.php @@ -0,0 +1,19 @@ +<?php +/** + * Elgg relationship export. + * Displays a relationship using PHP serialised data + * + * @package Elgg + * @subpackage Core + */ + +$r = $vars['relationship']; + +$export = new stdClass; +$exportable_values = $r->getExportableValues(); + +foreach ($exportable_values as $v) { + $export->$v = $r->$v; +} + +echo serialize($export);
\ No newline at end of file |