ODDMetaData.php 900 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * ODD Metadata class.
  4. *
  5. * @package Elgg.Core
  6. * @subpackage ODD
  7. * @deprecated 1.9
  8. */
  9. class ODDMetaData extends ODD {
  10. /**
  11. * New ODD metadata
  12. *
  13. * @param string $uuid Unique ID
  14. * @param string $entity_uuid Another unique ID
  15. * @param string $name Name
  16. * @param string $value Value
  17. * @param string $type Type
  18. * @param string $owner_uuid Owner ID
  19. */
  20. function __construct($uuid, $entity_uuid, $name, $value, $type = "", $owner_uuid = "") {
  21. parent::__construct();
  22. $this->setAttribute('uuid', $uuid);
  23. $this->setAttribute('entity_uuid', $entity_uuid);
  24. $this->setAttribute('name', $name);
  25. $this->setAttribute('type', $type);
  26. $this->setAttribute('owner_uuid', $owner_uuid);
  27. $this->setBody($value);
  28. }
  29. /**
  30. * Returns 'metadata'
  31. *
  32. * @return string 'metadata'
  33. */
  34. protected function getTagName() {
  35. return "metadata";
  36. }
  37. }