]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
pulled ODD classes out of ODDEntity
authorCash Costello <cash.costello@gmail.com>
Sat, 7 Jan 2012 16:31:03 +0000 (11:31 -0500)
committerCash Costello <cash.costello@gmail.com>
Sat, 7 Jan 2012 16:31:03 +0000 (11:31 -0500)
engine/classes/ODDEntity.php
engine/classes/ODDMetaData.php [new file with mode: 0644]
engine/classes/ODDRelationship.php [new file with mode: 0644]

index ab3a49168224cc7a91e461c4492305b51d7938db..e9bb5da6aade03183524474388d3f631ef45fab8 100644 (file)
@@ -32,75 +32,3 @@ class ODDEntity extends ODD {
                return "entity";
        }
 }
-
-/**
- * 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";
-       }
-}
-
-/**
- * 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";
-       }
-}
diff --git a/engine/classes/ODDMetaData.php b/engine/classes/ODDMetaData.php
new file mode 100644 (file)
index 0000000..58862e0
--- /dev/null
@@ -0,0 +1,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";
+       }
+}
diff --git a/engine/classes/ODDRelationship.php b/engine/classes/ODDRelationship.php
new file mode 100644 (file)
index 0000000..2906b1c
--- /dev/null
@@ -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";
+       }
+}