aboutsummaryrefslogtreecommitdiff
path: root/views/atom
diff options
context:
space:
mode:
Diffstat (limited to 'views/atom')
-rw-r--r--views/atom/export/entity.php17
-rw-r--r--views/atom/export/metadata.php21
-rw-r--r--views/atom/export/relationship.php21
-rw-r--r--views/atom/pageshells/pageshell.php16
4 files changed, 75 insertions, 0 deletions
diff --git a/views/atom/export/entity.php b/views/atom/export/entity.php
new file mode 100644
index 000000000..c89a73fc4
--- /dev/null
+++ b/views/atom/export/entity.php
@@ -0,0 +1,17 @@
+<?php
+ /**
+ * Elgg Entity export.
+ * Displays an entity as ODD over Atom
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ $entity = $vars['entity'];
+
+ echo export($entity->guid, new ODDAtomWrapperFactory());
+?> \ No newline at end of file
diff --git a/views/atom/export/metadata.php b/views/atom/export/metadata.php
new file mode 100644
index 000000000..2c943cd4d
--- /dev/null
+++ b/views/atom/export/metadata.php
@@ -0,0 +1,21 @@
+<?php
+ /**
+ * Elgg metadata export.
+ * Displays a metadata item using ODD over Atom
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ $m = $vars['metadata'];
+
+ $odd = new ODDDocument();
+ $odd->addElement($m->export());
+ $odd->setWrapperFactory(new ODDAtomWrapperFactory());
+
+ echo $odd;
+?> \ No newline at end of file
diff --git a/views/atom/export/relationship.php b/views/atom/export/relationship.php
new file mode 100644
index 000000000..d0ad62385
--- /dev/null
+++ b/views/atom/export/relationship.php
@@ -0,0 +1,21 @@
+<?php
+ /**
+ * Elgg relationship export.
+ * Displays a relationship using ODD over Atom
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ $r = $vars['relationship'];
+
+ $odd = new ODDDocument();
+ $odd->addElement($r->export());
+ $odd->setWrapperFactory(new ODDAtomWrapperFactory());
+
+ echo $odd;
+?> \ No newline at end of file
diff --git a/views/atom/pageshells/pageshell.php b/views/atom/pageshells/pageshell.php
new file mode 100644
index 000000000..f5c7a4ce0
--- /dev/null
+++ b/views/atom/pageshells/pageshell.php
@@ -0,0 +1,16 @@
+<?php
+ /**
+ * Elgg XML output pageshell
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ */
+
+ header("Content-Type: text/xml");
+ echo $vars['body'];
+?> \ No newline at end of file