blob: 52cd9d244239d6bb99e5cce7b773b82d86049a43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
/**
* Elgg Entity export.
* Displays an entity as JSON
*
* @package Elgg
* @subpackage Core
*/
$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;
|