diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-01-07 11:31:03 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-01-07 11:31:03 -0500 |
commit | 4cbfac796a5e863372099be9b5a79725ba080450 (patch) | |
tree | 3366905830d7982906a11564c953b4ef5bd2617b /engine/classes/ODDMetaData.php | |
parent | 3580c61a256b940ab1269a11f7f1593b0596e72c (diff) | |
download | elgg-4cbfac796a5e863372099be9b5a79725ba080450.tar.gz elgg-4cbfac796a5e863372099be9b5a79725ba080450.tar.bz2 |
pulled ODD classes out of ODDEntity
Diffstat (limited to 'engine/classes/ODDMetaData.php')
-rw-r--r-- | engine/classes/ODDMetaData.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/engine/classes/ODDMetaData.php b/engine/classes/ODDMetaData.php new file mode 100644 index 000000000..58862e0fb --- /dev/null +++ b/engine/classes/ODDMetaData.php @@ -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"; + } +} |