aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ODDRelationship.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-01-07 11:31:03 -0500
committerCash Costello <cash.costello@gmail.com>2012-01-07 11:31:03 -0500
commit4cbfac796a5e863372099be9b5a79725ba080450 (patch)
tree3366905830d7982906a11564c953b4ef5bd2617b /engine/classes/ODDRelationship.php
parent3580c61a256b940ab1269a11f7f1593b0596e72c (diff)
downloadelgg-4cbfac796a5e863372099be9b5a79725ba080450.tar.gz
elgg-4cbfac796a5e863372099be9b5a79725ba080450.tar.bz2
pulled ODD classes out of ODDEntity
Diffstat (limited to 'engine/classes/ODDRelationship.php')
-rw-r--r--engine/classes/ODDRelationship.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/engine/classes/ODDRelationship.php b/engine/classes/ODDRelationship.php
new file mode 100644
index 000000000..2906b1c73
--- /dev/null
+++ b/engine/classes/ODDRelationship.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * ODD Relationship class.
+ *
+ * @package Elgg
+ * @subpackage Core
+ */
+class ODDRelationship extends ODD {
+
+ /**
+ * New ODD Relationship
+ *
+ * @param unknown_type $uuid1 First UUID
+ * @param unknown_type $type Type of telationship
+ * @param unknown_type $uuid2 Second UUId
+ */
+ function __construct($uuid1, $type, $uuid2) {
+ parent::__construct();
+
+ $this->setAttribute('uuid1', $uuid1);
+ $this->setAttribute('type', $type);
+ $this->setAttribute('uuid2', $uuid2);
+ }
+
+ /**
+ * Returns 'relationship'
+ *
+ * @return 'relationship'
+ */
+ protected function getTagName() {
+ return "relationship";
+ }
+}