Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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 }
getTagName()
Returns 'relationship'.
__construct($uuid1, $type, $uuid2)
New ODD Relationship.
Definition: ODD.php:9
setAttribute($key, $value)
Sets an attribute.
Definition: ODD.php:44
if(!$display_name) $type
Definition: delete.php:27