aboutsummaryrefslogtreecommitdiff
path: root/views/php/export/entity.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/php/export/entity.php')
-rw-r--r--views/php/export/entity.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/views/php/export/entity.php b/views/php/export/entity.php
index fbde3ef0d..d167a1df3 100644
--- a/views/php/export/entity.php
+++ b/views/php/export/entity.php
@@ -12,5 +12,12 @@
*/
$entity = $vars['entity'];
- echo serialize($entity);
+
+ $export = new stdClass;
+ $exportable_values = $entity->getExportableValues();
+
+ foreach ($exportable_values as $v)
+ $export->$v = $entity->$v;
+
+ echo serialize($export);
?> \ No newline at end of file