diff options
Diffstat (limited to 'views/xml')
-rw-r--r-- | views/xml/api/output.php | 19 | ||||
-rw-r--r-- | views/xml/pageshells/pageshell.php | 16 |
2 files changed, 35 insertions, 0 deletions
diff --git a/views/xml/api/output.php b/views/xml/api/output.php new file mode 100644 index 000000000..aa385c9e3 --- /dev/null +++ b/views/xml/api/output.php @@ -0,0 +1,19 @@ +<?php + /** + * Elgg XML output + * This outputs the api as XML + * + * @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/ + * + */ + + $result = $vars['result']; + $export = $result->export(); + + echo serialise_object_to_xml($export, "elgg"); +?>
\ No newline at end of file diff --git a/views/xml/pageshells/pageshell.php b/views/xml/pageshells/pageshell.php new file mode 100644 index 000000000..f5c7a4ce0 --- /dev/null +++ b/views/xml/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 |