aboutsummaryrefslogtreecommitdiff
path: root/views/php
diff options
context:
space:
mode:
Diffstat (limited to 'views/php')
-rw-r--r--views/php/export/entity.php9
-rw-r--r--views/php/export/metadata.php9
-rw-r--r--views/php/export/relationship.php9
3 files changed, 24 insertions, 3 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
diff --git a/views/php/export/metadata.php b/views/php/export/metadata.php
index 1af6f065d..d7939bb82 100644
--- a/views/php/export/metadata.php
+++ b/views/php/export/metadata.php
@@ -12,5 +12,12 @@
*/
$m = $vars['metadata'];
- echo serialize($m);
+
+ $export = new stdClass;
+ $exportable_values = $m->getExportableValues();
+
+ foreach ($exportable_values as $v)
+ $export->$v = $m->$v;
+
+ echo serialize($export);
?> \ No newline at end of file
diff --git a/views/php/export/relationship.php b/views/php/export/relationship.php
index e66719f7c..58456c51c 100644
--- a/views/php/export/relationship.php
+++ b/views/php/export/relationship.php
@@ -12,5 +12,12 @@
*/
$r = $vars['relationship'];
- echo serialize($r);
+
+ $export = new stdClass;
+ $exportable_values = $r->getExportableValues();
+
+ foreach ($exportable_values as $v)
+ $export->$v = $r->$v;
+
+ echo serialize($export);
?> \ No newline at end of file