Elgg
Version 2.3
views
json
export
entity.php
Go to the documentation of this file.
1
<?php
11
$entity
=
$vars
[
'entity'
];
12
13
$export
=
new
stdClass;
14
$exportable_values
=
$entity
->getExportableValues();
15
16
foreach
(
$exportable_values
as $v) {
17
$export
->$v =
$entity
->$v;
18
}
19
20
$export
->url =
$entity
->getURL();
21
22
global
$jsonexport
;
23
$jsonexport
[
$entity
->getType()][
$entity
->getSubtype()][] =
$export
;
$exportable_values
$exportable_values
Definition:
entity.php:23
$entity
$entity
Definition:
entity.php:11
$jsonexport
global $jsonexport
Definition:
entity.php:22
$export
$export
Definition:
entity.php:13
$vars
$vars['entity']
Definition:
plugin_settings.php:15
Generated on Fri Aug 29 2025 00:00:47 for Elgg by
1.9.1