aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ODDRelationship.php
blob: 8b1fe217bf4fddcfae8c80d13d0e3b1c836f5c46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
 * ODD Relationship class.
 *
 * @package    Elgg
 * @subpackage Core
 */
class ODDRelationship extends ODD {

	/**
	 * New ODD Relationship
	 *
	 * @param string $uuid1 First UUID
	 * @param string $type  Type of telationship
	 * @param string $uuid2 Second UUId
	 */
	function __construct($uuid1, $type, $uuid2) {
		parent::__construct();

		$this->setAttribute('uuid1', $uuid1);
		$this->setAttribute('type', $type);
		$this->setAttribute('uuid2', $uuid2);
	}

	/**
	 * Returns 'relationship'
	 *
	 * @return string 'relationship'
	 */
	protected function getTagName() {
		return "relationship";
	}
}