relationship.php 374 B

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