Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
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
;
$entity
$entity
Definition:
entity.php:11
stdClass
$jsonexport
global $jsonexport
Definition:
entity.php:22
$exportable_values
$exportable_values
Definition:
entity.php:23
$export
$export
Definition:
entity.php:13
$vars
$vars['entity']
Definition:
plugin_settings.php:15
global
elgg global
Pointer to the global context.
Definition:
elgglib.js:12
Generated on Tue Jan 7 2025 00:01:04 for Elgg by
1.8.11