diff options
Diffstat (limited to 'engine/classes/ODDEntity.php')
| -rw-r--r-- | engine/classes/ODDEntity.php | 60 |
1 files changed, 17 insertions, 43 deletions
diff --git a/engine/classes/ODDEntity.php b/engine/classes/ODDEntity.php index 635e2e179..e9bb5da6a 100644 --- a/engine/classes/ODDEntity.php +++ b/engine/classes/ODDEntity.php @@ -2,11 +2,19 @@ /** * ODD Entity class. - * @package Elgg - * @subpackage Core - * @author Curverider Ltd + * + * @package Elgg.Core + * @subpackage ODD */ class ODDEntity extends ODD { + + /** + * New ODD Entity + * + * @param string $uuid A universally unique ID + * @param string $class Class + * @param string $subclass Subclass + */ function __construct($uuid, $class, $subclass = "") { parent::__construct(); @@ -15,46 +23,12 @@ class ODDEntity extends ODD { $this->setAttribute('subclass', $subclass); } - protected function getTagName() { return "entity"; } -} - -/** - * ODD Metadata class. - * @package Elgg - * @subpackage Core - * @author Curverider Ltd - */ -class ODDMetaData extends ODD { - 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 entity. + * + * @return 'entity' + */ protected function getTagName() { - return "metadata"; + return "entity"; } } - -/** - * ODD Relationship class. - * @package Elgg - * @subpackage Core - * @author Curverider Ltd - */ -class ODDRelationship extends ODD { - function __construct($uuid1, $type, $uuid2) { - parent::__construct(); - - $this->setAttribute('uuid1', $uuid1); - $this->setAttribute('type', $type); - $this->setAttribute('uuid2', $uuid2); - } - - protected function getTagName() { return "relationship"; } -}
\ No newline at end of file |
