Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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
Definition: entity.php:11
global $jsonexport
Definition: entity.php:22
$exportable_values
Definition: entity.php:23
$export
Definition: entity.php:13
$vars['entity']