Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
metadata.php
Go to the documentation of this file.
1 <?php
11 $m = $vars['metadata'];
12 
13 $export = new stdClass;
14 $exportable_values = $entity->getExportableValues();
15 
16 foreach ($exportable_values as $v) {
17  $export->$v = $m->$v;
18 }
19 
20 global $jsonexport;
21 $jsonexport['metadata'][] = $entity;
22 // echo json_encode($export);
$m
Definition: metadata.php:11
$vars['entity']
foreach($exportable_values as $v) global $jsonexport
Definition: metadata.php:16
$entity
Definition: delete.php:7
$exportable_values
Definition: metadata.php:14
$export
Definition: metadata.php:13