ODDRelationship.php 633 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * ODD Relationship class.
  4. *
  5. * @package Elgg
  6. * @subpackage Core
  7. * @deprecated 1.9
  8. */
  9. class ODDRelationship extends ODD {
  10. /**
  11. * New ODD Relationship
  12. *
  13. * @param string $uuid1 First UUID
  14. * @param string $type Type of telationship
  15. * @param string $uuid2 Second UUId
  16. */
  17. function __construct($uuid1, $type, $uuid2) {
  18. parent::__construct();
  19. $this->setAttribute('uuid1', $uuid1);
  20. $this->setAttribute('type', $type);
  21. $this->setAttribute('uuid2', $uuid2);
  22. }
  23. /**
  24. * Returns 'relationship'
  25. *
  26. * @return string 'relationship'
  27. */
  28. protected function getTagName() {
  29. return "relationship";
  30. }
  31. }