aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ODDMetaData.php
blob: 58862e0fbff2beecfc225570271a9cfc0cdacc75 (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
35
36
37
38
39
<?php
/**
 * ODD Metadata class.
 *
 * @package    Elgg.Core
 * @subpackage ODD
 */
class ODDMetaData extends ODD {

	/**
	 * New ODD metadata
	 *
	 * @param unknown_type $uuid        Unique ID
	 * @param unknown_type $entity_uuid Another unique ID
	 * @param unknown_type $name        Name
	 * @param unknown_type $value       Value
	 * @param unknown_type $type        Type
	 * @param unknown_type $owner_uuid  Owner ID
	 */
	function __construct($uuid, $entity_uuid, $name, $value, $type = "", $owner_uuid = "") {
		parent::__construct();

		$this->setAttribute('uuid', $uuid);
		$this->setAttribute('entity_uuid', $entity_uuid);
		$this->setAttribute('name', $name);
		$this->setAttribute('type', $type);
		$this->setAttribute('owner_uuid', $owner_uuid);
		$this->setBody($value);
	}

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