diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-24 12:13:03 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-24 12:13:03 +0000 |
commit | 49b9a706d2dfa56312627887bdb8bedb0410ec8b (patch) | |
tree | 68b4be599b196fceed25794850865b40b976940a /views/odd | |
parent | 25206b3e3ca84573cde7598b5e8d92283d2701d5 (diff) | |
download | elgg-49b9a706d2dfa56312627887bdb8bedb0410ec8b.tar.gz elgg-49b9a706d2dfa56312627887bdb8bedb0410ec8b.tar.bz2 |
Closes #82: OpenDD feeds in the same vein as RSS
http://trac.elgg.org/elgg/ticket/82
git-svn-id: https://code.elgg.org/elgg/trunk@1100 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/odd')
-rw-r--r-- | views/odd/export/entity.php | 5 | ||||
-rw-r--r-- | views/odd/export/metadata.php | 8 | ||||
-rw-r--r-- | views/odd/export/relationship.php | 8 | ||||
-rw-r--r-- | views/odd/pageshells/pageshell.php | 10 |
4 files changed, 22 insertions, 9 deletions
diff --git a/views/odd/export/entity.php b/views/odd/export/entity.php index d6efd413c..a147a707a 100644 --- a/views/odd/export/entity.php +++ b/views/odd/export/entity.php @@ -12,5 +12,8 @@ */ $entity = $vars['entity']; - echo export($entity->guid); + $serialised = exportAsArray($vars['entity']->guid); + foreach ($serialised as $s) + echo $s; + ?>
\ No newline at end of file diff --git a/views/odd/export/metadata.php b/views/odd/export/metadata.php index dff62086a..e6f74e2d2 100644 --- a/views/odd/export/metadata.php +++ b/views/odd/export/metadata.php @@ -14,8 +14,10 @@ $m = $vars['metadata']; $uuid = $vars['uuid']; - $odd = new ODDDocument(); - $odd->addElement($m->export()); + //$odd = new ODDDocument(); + //$odd->addElement($m->export()); - echo $odd; + //echo $odd; + + echo $m->export(); ?>
\ No newline at end of file diff --git a/views/odd/export/relationship.php b/views/odd/export/relationship.php index 85387a273..28b3026d5 100644 --- a/views/odd/export/relationship.php +++ b/views/odd/export/relationship.php @@ -13,8 +13,10 @@ $r = $vars['relationship']; - $odd = new ODDDocument(); - $odd->addElement($r->export()); + //$odd = new ODDDocument(); + //$odd->addElement($r->export()); - echo $odd; + //echo $odd; + + echo $r->export(); ?>
\ No newline at end of file diff --git a/views/odd/pageshells/pageshell.php b/views/odd/pageshells/pageshell.php index 93b3e3185..92c11eadc 100644 --- a/views/odd/pageshells/pageshell.php +++ b/views/odd/pageshells/pageshell.php @@ -12,5 +12,11 @@ */ header("Content-Type: text/xml"); - echo $vars['body']; -?>
\ No newline at end of file + + +?> +<odd> +<?php +echo $vars['body']; +?> +</odd>
\ No newline at end of file |