Elgg  Version 1.9
ODDRelationship.php
Go to the documentation of this file.
1 <?php
9 class ODDRelationship extends ODD {
10 
18  function __construct($uuid1, $type, $uuid2) {
19  parent::__construct();
20 
21  $this->setAttribute('uuid1', $uuid1);
22  $this->setAttribute('type', $type);
23  $this->setAttribute('uuid2', $uuid2);
24  }
25 
31  protected function getTagName() {
32  return "relationship";
33  }
34 }
$type
Definition: add.php:8
getTagName()
Returns &#39;relationship&#39;.
__construct($uuid1, $type, $uuid2)
New ODD Relationship.
Definition: ODD.php:9
setAttribute($key, $value)
Sets an attribute.
Definition: ODD.php:44