aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ODDEntity.php
blob: e9bb5da6aade03183524474388d3f631ef45fab8 (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
34
<?php

/**
 * ODD Entity class.
 *
 * @package    Elgg.Core
 * @subpackage ODD
 */
class ODDEntity extends ODD {

	/**
	 * New ODD Entity
	 *
	 * @param string $uuid     A universally unique ID
	 * @param string $class    Class
	 * @param string $subclass Subclass
	 */
	function __construct($uuid, $class, $subclass = "") {
		parent::__construct();

		$this->setAttribute('uuid', $uuid);
		$this->setAttribute('class', $class);
		$this->setAttribute('subclass', $subclass);
	}

	/**
	 * Returns entity.
	 *
	 * @return 'entity'
	 */
	protected function getTagName() {
		return "entity";
	}
}