1: <?php
2:
3: /**
4: * ODD Entity class.
5: *
6: * @package Elgg.Core
7: * @subpackage ODD
8: */
9: class ODDEntity extends ODD {
10:
11: /**
12: * New ODD Entity
13: *
14: * @param string $uuid A universally unique ID
15: * @param string $class Class
16: * @param string $subclass Subclass
17: */
18: function __construct($uuid, $class, $subclass = "") {
19: parent::__construct();
20:
21: $this->setAttribute('uuid', $uuid);
22: $this->setAttribute('class', $class);
23: $this->setAttribute('subclass', $subclass);
24: }
25:
26: /**
27: * Returns entity.
28: *
29: * @return 'entity'
30: */
31: protected function getTagName() {
32: return "entity";
33: }
34: }
35: