1: <?php
2: /**
3: * ODD Relationship class.
4: *
5: * @package Elgg
6: * @subpackage Core
7: */
8: class ODDRelationship extends ODD {
9:
10: /**
11: * New ODD Relationship
12: *
13: * @param string $uuid1 First UUID
14: * @param string $type Type of telationship
15: * @param string $uuid2 Second UUId
16: */
17: function __construct($uuid1, $type, $uuid2) {
18: parent::__construct();
19:
20: $this->setAttribute('uuid1', $uuid1);
21: $this->setAttribute('type', $type);
22: $this->setAttribute('uuid2', $uuid2);
23: }
24:
25: /**
26: * Returns 'relationship'
27: *
28: * @return string 'relationship'
29: */
30: protected function getTagName() {
31: return "relationship";
32: }
33: }
34: