Elgg  Version 1.9
ODDMetaData.php
Go to the documentation of this file.
1 <?php
9 class ODDMetaData extends ODD {
10 
21  function __construct($uuid, $entity_uuid, $name, $value, $type = "", $owner_uuid = "") {
22  parent::__construct();
23 
24  $this->setAttribute('uuid', $uuid);
25  $this->setAttribute('entity_uuid', $entity_uuid);
26  $this->setAttribute('name', $name);
27  $this->setAttribute('type', $type);
28  $this->setAttribute('owner_uuid', $owner_uuid);
29  $this->setBody($value);
30  }
31 
37  protected function getTagName() {
38  return "metadata";
39  }
40 }
getTagName()
Returns &#39;metadata&#39;.
Definition: ODDMetaData.php:37
setBody($value)
Sets the body of the ODD.
Definition: ODD.php:70
if($guid==elgg_get_logged_in_user_guid()) $name
Definition: delete.php:21
$value
Definition: longtext.php:29
$type
Definition: add.php:8
Definition: ODD.php:9
__construct($uuid, $entity_uuid, $name, $value, $type="", $owner_uuid="")
New ODD metadata.
Definition: ODDMetaData.php:21
setAttribute($key, $value)
Sets an attribute.
Definition: ODD.php:44