aboutsummaryrefslogtreecommitdiff
path: root/views/opendd
diff options
context:
space:
mode:
Diffstat (limited to 'views/opendd')
-rw-r--r--views/opendd/canvas/default.php21
-rw-r--r--views/opendd/export/entity.php19
-rw-r--r--views/opendd/export/metadata.php23
-rw-r--r--views/opendd/export/relationship.php22
-rw-r--r--views/opendd/group/default.php17
-rw-r--r--views/opendd/messages/exceptions/exception.php31
-rw-r--r--views/opendd/object/default.php17
-rw-r--r--views/opendd/pageshells/pageshell.php22
-rw-r--r--views/opendd/site/default.php17
-rw-r--r--views/opendd/user/default.php17
10 files changed, 206 insertions, 0 deletions
diff --git a/views/opendd/canvas/default.php b/views/opendd/canvas/default.php
new file mode 100644
index 000000000..f1fbe6c96
--- /dev/null
+++ b/views/opendd/canvas/default.php
@@ -0,0 +1,21 @@
+<?php
+
+ /**
+ * Elgg default layout
+ *
+ * @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/
+ */
+
+ for ($i = 1; $i < 8; $i++) {
+
+ if (isset($vars["area{$i}"]))
+ echo $vars["area{$i}"];
+
+ }
+
+?> \ No newline at end of file
diff --git a/views/opendd/export/entity.php b/views/opendd/export/entity.php
new file mode 100644
index 000000000..a147a707a
--- /dev/null
+++ b/views/opendd/export/entity.php
@@ -0,0 +1,19 @@
+<?php
+ /**
+ * Elgg Entity export.
+ * Displays an entity as ODD
+ *
+ * @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'];
+ $serialised = exportAsArray($vars['entity']->guid);
+ foreach ($serialised as $s)
+ echo $s;
+
+?> \ No newline at end of file
diff --git a/views/opendd/export/metadata.php b/views/opendd/export/metadata.php
new file mode 100644
index 000000000..e6f74e2d2
--- /dev/null
+++ b/views/opendd/export/metadata.php
@@ -0,0 +1,23 @@
+<?php
+ /**
+ * Elgg metadata export.
+ * Displays a metadata item using the current view.
+ *
+ * @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'];
+ $uuid = $vars['uuid'];
+
+ //$odd = new ODDDocument();
+ //$odd->addElement($m->export());
+
+ //echo $odd;
+
+ echo $m->export();
+?> \ No newline at end of file
diff --git a/views/opendd/export/relationship.php b/views/opendd/export/relationship.php
new file mode 100644
index 000000000..28b3026d5
--- /dev/null
+++ b/views/opendd/export/relationship.php
@@ -0,0 +1,22 @@
+<?php
+ /**
+ * Elgg relationship export.
+ * Displays a relationship using ODD.
+ *
+ * @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());
+
+ //echo $odd;
+
+ echo $r->export();
+?> \ No newline at end of file
diff --git a/views/opendd/group/default.php b/views/opendd/group/default.php
new file mode 100644
index 000000000..8cf04ef16
--- /dev/null
+++ b/views/opendd/group/default.php
@@ -0,0 +1,17 @@
+<?php
+
+ /**
+ * Elgg default object view
+ *
+ * @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/
+ */
+
+ $serialised = exportAsArray($vars['entity']->guid);
+ foreach ($serialised as $s)
+ echo $s;
+?> \ No newline at end of file
diff --git a/views/opendd/messages/exceptions/exception.php b/views/opendd/messages/exceptions/exception.php
new file mode 100644
index 000000000..38afbee58
--- /dev/null
+++ b/views/opendd/messages/exceptions/exception.php
@@ -0,0 +1,31 @@
+<?php
+
+ /**
+ * Elgg exception
+ * Displays a single exception
+ *
+ * @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/
+ *
+ * @uses $vars['object'] An exception
+ */
+
+ global $CONFIG;
+?>
+<!--
+<?php echo get_class($vars['object']); ?>: <?php echo autop($vars['object']->getMessage()); ?>
+
+
+<?php if ($CONFIG->debug) { ?>
+<?php
+
+ echo print_r($vars['object'], true);
+
+ ?>
+<?php } ?>
+
+--> \ No newline at end of file
diff --git a/views/opendd/object/default.php b/views/opendd/object/default.php
new file mode 100644
index 000000000..8cf04ef16
--- /dev/null
+++ b/views/opendd/object/default.php
@@ -0,0 +1,17 @@
+<?php
+
+ /**
+ * Elgg default object view
+ *
+ * @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/
+ */
+
+ $serialised = exportAsArray($vars['entity']->guid);
+ foreach ($serialised as $s)
+ echo $s;
+?> \ No newline at end of file
diff --git a/views/opendd/pageshells/pageshell.php b/views/opendd/pageshells/pageshell.php
new file mode 100644
index 000000000..92c11eadc
--- /dev/null
+++ b/views/opendd/pageshells/pageshell.php
@@ -0,0 +1,22 @@
+<?php
+ /**
+ * Elgg XML output pageshell for ODD
+ *
+ * @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");
+
+
+?>
+<odd>
+<?php
+echo $vars['body'];
+?>
+</odd> \ No newline at end of file
diff --git a/views/opendd/site/default.php b/views/opendd/site/default.php
new file mode 100644
index 000000000..8cf04ef16
--- /dev/null
+++ b/views/opendd/site/default.php
@@ -0,0 +1,17 @@
+<?php
+
+ /**
+ * Elgg default object view
+ *
+ * @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/
+ */
+
+ $serialised = exportAsArray($vars['entity']->guid);
+ foreach ($serialised as $s)
+ echo $s;
+?> \ No newline at end of file
diff --git a/views/opendd/user/default.php b/views/opendd/user/default.php
new file mode 100644
index 000000000..8cf04ef16
--- /dev/null
+++ b/views/opendd/user/default.php
@@ -0,0 +1,17 @@
+<?php
+
+ /**
+ * Elgg default object view
+ *
+ * @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/
+ */
+
+ $serialised = exportAsArray($vars['entity']->guid);
+ foreach ($serialised as $s)
+ echo $s;
+?> \ No newline at end of file