aboutsummaryrefslogtreecommitdiff
path: root/views/atom/export/relationship.php
blob: d0ad623851f787a4d01f656a47d859a343213172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
?>