diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-30 17:13:13 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-30 17:13:13 +0000 |
commit | b06376e171d82c821106f8f86a856fb2aea41f7a (patch) | |
tree | 2454c18480fdb0ad84313b17bae7f646b6ebf54e /views/opendd | |
parent | 3921f1eaa710f5b76d2ca222b0b16bef215b0f3a (diff) | |
download | elgg-b06376e171d82c821106f8f86a856fb2aea41f7a.tar.gz elgg-b06376e171d82c821106f8f86a856fb2aea41f7a.tar.bz2 |
Closes #189: ODD -> OpenDD
git-svn-id: https://code.elgg.org/elgg/trunk@1611 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/opendd')
-rw-r--r-- | views/opendd/canvas/default.php | 21 | ||||
-rw-r--r-- | views/opendd/export/entity.php | 19 | ||||
-rw-r--r-- | views/opendd/export/metadata.php | 23 | ||||
-rw-r--r-- | views/opendd/export/relationship.php | 22 | ||||
-rw-r--r-- | views/opendd/group/default.php | 17 | ||||
-rw-r--r-- | views/opendd/messages/exceptions/exception.php | 31 | ||||
-rw-r--r-- | views/opendd/object/default.php | 17 | ||||
-rw-r--r-- | views/opendd/pageshells/pageshell.php | 22 | ||||
-rw-r--r-- | views/opendd/site/default.php | 17 | ||||
-rw-r--r-- | views/opendd/user/default.php | 17 |
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 |