output.php 197 B

123456789101112
  1. <?php
  2. /**
  3. * Elgg JSON output
  4. * This outputs the api results as JSON
  5. *
  6. * @package Elgg
  7. * @subpackage Core
  8. */
  9. $result = $vars['result'];
  10. $export = $result->export();
  11. echo json_encode($export);