metadata.php 390 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Elgg metadata export.
  4. * Displays a metadata item using json
  5. *
  6. * @package Elgg
  7. * @subpackage Core
  8. * @deprecated 1.9
  9. */
  10. $m = $vars['metadata'];
  11. $export = new stdClass;
  12. $exportable_values = $entity->getExportableValues();
  13. foreach ($exportable_values as $v) {
  14. $export->$v = $m->$v;
  15. }
  16. global $jsonexport;
  17. $jsonexport['metadata'][] = $entity;
  18. // echo json_encode($export);