aboutsummaryrefslogtreecommitdiff
path: root/views/php/api
diff options
context:
space:
mode:
Diffstat (limited to 'views/php/api')
-rw-r--r--views/php/api/output.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/views/php/api/output.php b/views/php/api/output.php
new file mode 100644
index 000000000..14259564c
--- /dev/null
+++ b/views/php/api/output.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * Elgg PHP output
+ * This outputs the api results as serialized PHP
+ *
+ * @package Elgg
+ * @subpackage Core
+ */
+
+$result = $vars['result'];
+$export = $result->export();
+
+echo serialize($export); \ No newline at end of file