Elgg  Version 1.9
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 
23 $jsonexport[$entity->getType()][$entity->getSubtype()][] = $export;
$entity
Definition: entity.php:11
global $jsonexport
Definition: entity.php:22
$exportable_values
Definition: entity.php:23
$export
Definition: entity.php:13
elgg global
Pointer to the global context.
Definition: elgglib.js:12
if(file_exists($welcome)) $vars
Definition: upgrade.php:93