diff options
Diffstat (limited to 'views/json/export')
-rw-r--r-- | views/json/export/entity.php | 8 | ||||
-rw-r--r-- | views/json/export/metadata.php | 4 | ||||
-rw-r--r-- | views/json/export/relationship.php | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/views/json/export/entity.php b/views/json/export/entity.php index 9eeec770f..8c253d9b0 100644 --- a/views/json/export/entity.php +++ b/views/json/export/entity.php @@ -9,16 +9,16 @@ * @link http://elgg.org/ */ - $entity = $vars['entity'];
+ $entity = $vars['entity']; $export = new stdClass; $exportable_values = $entity->getExportableValues(); foreach ($exportable_values as $v) - $export->$v = $entity->$v;
-
+ $export->$v = $entity->$v; + $export->url = $entity->getURL(); -
+ global $jsonexport; $jsonexport[$entity->getType()][$entity->getSubtype()][] = $export; ?>
\ No newline at end of file diff --git a/views/json/export/metadata.php b/views/json/export/metadata.php index 01df5567e..10aceb9df 100644 --- a/views/json/export/metadata.php +++ b/views/json/export/metadata.php @@ -16,8 +16,8 @@ foreach ($exportable_values as $v) $export->$v = $m->$v; -
- global $jsonexport;
+ + global $jsonexport; $jsonexport['metadata'][] = $entity; // echo json_encode($export); ?>
\ No newline at end of file diff --git a/views/json/export/relationship.php b/views/json/export/relationship.php index 07b7e3b0e..dd1adb4d8 100644 --- a/views/json/export/relationship.php +++ b/views/json/export/relationship.php @@ -18,7 +18,7 @@ foreach ($exportable_values as $v) $export->$v = $r->$v; - global $jsonexport;
- $jsonexport['relationships'][] = $export;
+ global $jsonexport; + $jsonexport['relationships'][] = $export; ?>
\ No newline at end of file |