aboutsummaryrefslogtreecommitdiff
path: root/views/json/export/entity.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/json/export/entity.php')
-rw-r--r--views/json/export/entity.php44
1 files changed, 22 insertions, 22 deletions
diff --git a/views/json/export/entity.php b/views/json/export/entity.php
index 8c253d9b0..750338964 100644
--- a/views/json/export/entity.php
+++ b/views/json/export/entity.php
@@ -1,24 +1,24 @@
<?php
- /**
- * Elgg Entity export.
- * Displays an entity as JSON
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- */
+/**
+ * Elgg Entity export.
+ * Displays an entity as JSON
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- $entity = $vars['entity'];
-
- $export = new stdClass;
- $exportable_values = $entity->getExportableValues();
-
- foreach ($exportable_values as $v)
- $export->$v = $entity->$v;
-
- $export->url = $entity->getURL();
-
- global $jsonexport;
- $jsonexport[$entity->getType()][$entity->getSubtype()][] = $export;
-?> \ No newline at end of file
+$entity = $vars['entity'];
+
+$export = new stdClass;
+$exportable_values = $entity->getExportableValues();
+
+foreach ($exportable_values as $v) {
+ $export->$v = $entity->$v;
+}
+
+$export->url = $entity->getURL();
+
+global $jsonexport;
+$jsonexport[$entity->getType()][$entity->getSubtype()][] = $export; \ No newline at end of file